Application terminates on return from device's native text input screen
I'm using LWUIT with a J2ME application on Samsung F480 device (touch device).
When I press on textfields in my application, the device's native text input screen is opened for text entry (T9 mode). This screen has two commands: OK and Cancel. When I press any of the commands, regardless of whether any text was entered or not, the application is terminated.
The odd thing about it is that I've noticed that the selected command is always 'Cancel', even when I press on the OK softkey.
The same code runs with no problems on other touch devices (other Samsung models and other companies as well).
This has to be some LWUIT related issue because when I invoke the same native text field from a J2ME application that does not use LWUIT, the application works fine and does not terminate.
Has anyone encountered this problem before?
Any leads on how to resolve this issue will be highly appreciated.