09-09-2010 03:38 AM
I have developed a midlet [not used RIM API] with some custom items. When midlet starts it shows the login screen with the custom designed USERNAME and PASSWORD fields. When user enters letters/numbers through the keypad on the device, they get displayed in the selected custom item. I have managed to give the same effect as like of actual standard TextField.
But it requires keypad on the device. It wont work on the full touch screen phones, as there is no way to enter letters/numbers on the full touch screen devices.
On full touch screen, if I touch on the standard TextField [not custom designed], application produces virtual keypad on the screen. In the same way, What should I do so that application can produce the virtual keypad when user touches the custom item?
09-13-2010 01:03 AM
Is there any way to do this? Please let me know if it cant be possible at all. I am sure there must be a way to achieve this. I am desperately waiting for the reply. If you have any idea, any help will be greatly appreciated. Thanks.
09-13-2010 04:46 AM
i don't know how this could be achieved without using rim API.
09-13-2010 11:18 AM
You would need to use one of the BlackBerry* classes that extend the MIDlet UI elements (BlackBerryForm, BlackBerryTextBox etc). From here you can retrieve a handle to the VirtualKeyboardControl using the getControls() method which can then be used to control the visibility of the virtual keyboard.
09-14-2010 01:21 AM
Please tell me the name of RIM class for virtual keypad. Even if I decided to use RIM class for virtual keypad, how can I attach it to my Custom Text Fields, so that when user touch the field, it will produce the RIM's virtual keypad?
09-14-2010 01:27 AM
Not only RIMs forms or text fields, application will produce the virtual keypad also for MIDPs standard textfields. But I have not used the standard textfields. How can I produce them on Custom Items. Here, USERNAME and PASSWORD fields are not a standard text fields. They are actually a designed items called custom items.
09-14-2010 04:12 AM
while I have no experience working with the classes mentioned by Garett you could maybe create one of these fields just to call the virtual keyboard.
you can overwrite onFocus (if there is something similar in plain j2me) and call the rim-field, getComponents and use showVirtualKeyboard.
10-12-2010 12:57 AM
When I used the standard text field from the Java MIDP API in my midlet, it produces virtual keypad when user touches the standard text field. IN THIS CASE ALSO I AM NOT USING ANY RIM'S API OR CLASS. This virtual keypad will look different on different phones like samsung, nokia or blackberry as it is produced by device itself. right?
Then in the same way it should produce the virtual keypad on custom items also. What should I do so that it will produce virtual keypad on the custom items also, without using any RIMs API? Is there any setting should I do? Or is there any listener should I attach on my custom items?
Here I cant use RIMs API because it will fail on other devices.
Please guide me to sort out this problem. Best Regards.