How to prevent an application from being uninstalled?

Ankur,

I think the closest thing to what your looking for is the Device Administration feature introduced in 2.2.

Once the application is registered as a Device Administrator, it can’t be uninstalled unless its unregistered. This will prevent the app from being uninstalled.

While the Device Admin API doesn’t allow for password protection of this particular feature, you can password protect your application to prevent someone from tampering with the Device Admin features in the app.

I use an app called SeekDroid that has a similar functionality.

Leave a Comment