Hello all,
I am developing a j2me application for a list of handsets including
HTC P3450(windows mobile/touch screen). I am almost finished but i am facing a serious problem in the
last handset.The problem that i have is that when i am using htc's virtual keyboard and type some
characters like a,b,c the Midlets hangs. This does NOT occur when i am using the virtual keyboard
for the numeric characters like 1,2,3..etc.
I am handling keyboard input in the same way that i am handling it the for any another handset ie Nokia N-73,
meaning that i am materializing the method
keyPressed (int keyCode){
//some code here
;
}
(so i can set in my class one varialble like 'mykeyCode' the keycode that (i suppose)jvm generates when a user presses a button)
AND i use getGameAction(mykeyCode) to decode the keycode pressed in the proper action.
The class in which keypressed() and getGameAction() is used is MyMidletCanvas which is extending GameCanvas class.
As i tested without using getGameAction() or using another Test midlet in which is a class Canvas or Gamecanvas
(i 've tried both cases) and materializing keypressed() the Midlet HANGS is the same way.Namely when i am pressing
chars like a,b,c AND not for the numeric characters.
As i also tested using another Test Midlet 'MyMidlet' which is NOT a canvas (or GameCanvas) but
uses only high level components like Textfield.As i noticed using keyboard characters like a,b,c
does NOT cause Midlet to crash, but i can see that they are entered OK in the textfield.
What seems to be the problem?
How can we solve that?
a)creating a custom input area like a auxilary canvas(and not use HTC's software keyboard?)
b)another more gentle solution?
Thank you
NiKolaos
