Hello,
The helloworldplus example in the SDK displays an informationNote when the user pushes the "2" key. I am trying to modify the helloworldplus example in the SDK to display the informationNote when the user pushes 'a'. The application uses a view that is added on to the stack to handle key events. Inside the OfferKeyEventL method, instead of checking for the key press value '2', I am modifying that to (aKeyEvent.iCode == 97) which is unicode for 'a'. When I run this on the emulator, the program works fine if I push the 'a' key on the keyboard but not on the phone (emulator). Similarly even on the phone (I use Nokia 6682 running 2nd ed.SDK fp2), it will handle '2' but not 'a' for which i need to use the same '2' key. I figured that the phone is in "Numeric" mode and not Alpha mode and so no characters are being recognized. To convert to the aplha mode, I know we need to keep holding "#" key until it toggles but it does not ork in this case. I have tried all permutation combinations of keys (#, the pencil "edit" key etc..). I concluded that with just a "view" to handle key events, the phone is always in numeric mode and I dont know if we could set it to alpha mode using some method in the API. I did look into other examples such as the query and form examples and found that since they use dialogs, we could afford to switch between modes and hence, enter number query takes in numbers and enter name takes in alphabets. Is what I am thinking right?? If I now need to make the helloworldplus example accept characters, I need to add another control to the view??or is there a better way or am I wrong thinking this way?
Thanks a lot for all the help!



