I work in J2ME. I want my midlet to run indefinitely. It should not be closed, even I press any of the keys on my device.
Please help me, what should I do for this?
If you are using a Nokia phone, you can add Nokia-MIDlet-No-Exit: true to the Jad file: http://library.developer.nokia.com/index.jsp?topic=/Java_Developers_Library/GUID-C5D3E0F5-72B9-4EE7 -8BA7-20DE4A538FB8.html
This one more question concerns this minimization of the mobile application, on the exit button, click
I am afraid that any device may close any midlet that it launches. This can be done by the platform, and you cannot do anything in J2ME. The only solution is to make your own firmware (or OS) by fixing it.
It should not be Nokia-MIDlet-No-Exit:true , but it should be Nokia-MIDlet-no-exit: truebut to do this, you first disable the Nokia Security Firewall by hacking your s40 device.
Nokia-MIDlet-No-Exit:true
Nokia-MIDlet-no-exit: true