I am new to cell phone programming and have begun to write an application which requires me to take user input from the cell phone keypad. I was wondering if there was a method to recognize which key was pressed by the user. I have come across ways of detecting the OK button as they seem to be default. I would really like a way to be able to detect the numbers being pressed. I am using Java to code and the NetBeans Mobility environment to develop my application. If anyone has any ideas or can point me in the right direction it would be appreciated.
Key codes differs with mobile phones. If you want to be sure of the input you should test it on every phone model that you use, or just use J2ME standard input classes for the text input (depends what kind of application you create).