I am developing an application for touch screen devices (MOTOMING A1200, MOTOMING A1600).
Are there any core/optional Java ME APIs which will allow me to use the handwriting recognition feature of the device? How do I add handwriting recognition support for the device? Are these APIs open for developers?
Normally the handwriting recognition is handled external to the JRE as a OS infrastructure service as part of the general text input function. So to the app, there's no discernible difference between using the keyboard and using the stylus. Although I'm not sure how keyup/keydown events are defined.
Sometimes the only way things ever got fixed is because people became uncomfortable.
You don't "call" the keyboard input methods. Keyboard input creates events and you can attach listeners to those events so that when they fire, you can execute your keyhandling code.
For the more general case, such as when you're just looking for text input, you don't even do that. The input controls never notice that you're not actually using a keyboard.
The devices I've got support multiple types of character input, including onscreen "touch-type" keyboard, physical keyboard, block character (Grafitti-style) and writing (Newton-style) input. Which method you select is an OS-level preference set using a toolbar menu and the apps have no idea which one you're using, nor do they care - you can even switch input methods in the middle of text entry and they won't notice. All they see is the text data.
Sometimes the only way things ever got fixed is because people became uncomfortable.
Okay.. So what I've got from your last post is that I can change the input method of the device during runtime and the app won't see any difference in the data it reads.
So there basically does not exist a method by which the application can 'explicitely' choose its input type from the device?
Nilay Khandelwal wrote:
So there basically does not exist a method by which the application can 'explicitely' choose its input type from the device?
I wouldn't want it to do so anyway. I happen to prefer Grafitti-style input. Some people prefer the keyboard. In certain usages I'll switch, especially if I'm trying to get some arcane character in that I don't know how to stroke (or conversely, isn't on the keyboard).
Sometimes the only way things ever got fixed is because people became uncomfortable.