Text input in MIDP
I'm developing a GUI extension library for MIDP, I'm using a spotlet like architecture.
The problem is that Canvas class has no support for text input, only hard-keys of my palm can be used ! ! !
This means that the only way for textual input is TextField? I cannot use it, since I'm building my own components..
How can I make textual input (through keyword or graffiti) in MIDP ?
thx for the help
Mario
Hi,
It's "recommended" not to do text input in Canvas with MIDP (forget where I read this).
The problem is not just in Palms, but also in phones, where the "2" key can be used to enter "a", "b", "c", plus maybe "a" with an accent, ... Unfortunately characters aren't assigned to keys the same way in all phones (especially for the non-alphabetic keys like punctuation), the method for entering capital or lower case letters differs, the speed at which you have to enter varies, plus there may be predictive text input...
The MIDP API doesn't give access to any of this information which means it's impossible to do input consistently with the phone's native mechanism (so effectively, it should not be attempted).
The above applies to phones, and I'm not familiar with the Palm implementation, but certainly there's nothing in the MIDP API to give access to Graffiti input from a Canvas, so it seems like your problems are even greater here...
Andrew