You are here:

I need to prevent deletion of my jar file or app in a mobile by an unauthorised user...like say the user can set a password and inorder to delete this app he/she must provide this password..otherwise the app should not be deleted...

Reply viewing options

Thank you for your replies..but i heard that there is [b]no way[/b] to activate a j2me app on [u]boot up [/u]without using a [b]third party application.[/b]..deisgned for that particular mobile version..is it true?? if not how can i start my app on boot up???

This is not possible in JavaME using the MIDP profile.
Albert_Kam is right that you could on many phones setup an on-boot trigger of your application. However if this is done by a few apps the user is quickly going to be irritated and remove your app anyway.

Your concern that an "unauthorized user" is going to delete the midlet is valid, as most phone users do not setup a lock code on their phone leaving it wide open to unauthorized use. But there can not be an option in the JavaME specification to allow this feature as it could allow unethical developers the opportunity to build a virus that could render a phone inoperable without a way to remove the offending code.

If your app will run exclusively on the client's pocket pc, i think you could try this approach i'm using :
1. When the pocket pc is turned on, the application is automatically launched, full screen, no task bar, no start menu, nothing.
2. The app runs fullscreen, and then when he tries to exit, he'll be prompted for password.

This would mean ordinary user couldnt do anything with the system, he'll just interact with your application only.