How does a MIDP application deal with the wide diversity of input devices?
A MIDP device may have as few as four keys, but some have full QWERTY keyboards or pointers. This presents a challenge for the developer. MIDP supports two different input strategies: form-based input (typically used when a Form object is the current displayable), and raw keyboard input (typically used when a Canvas object is the current displayable). With form-based input, the methods by which data is entered into the form elements, and the method of navigation between form elements, are all vendor-specific. For example, if the operator has a mobile phone that requires multiple keypresses to enter alphanumeric data, the MIDP application should not have to worry about this. The device will arrange that the data entered – however this is achieved by the operator – is presented to the application as ordinary Java Strings. Similarly, if the device has a four-way arrow keypad, the MIDP implementation may map arrow operations to navigation operations. The way it does this will be different
Related Questions
- I want to develop an application where information sent from different PDA devices should be collected on a single network workstation. Can I achieve this by using PocketLANce SDK?
- How did Muslim rulers deal with the wide diversity among peoples that they ruled?
- Can I run a J2ME MIDP application ("MIDlet") on PalmOS devices?