How to assign uninstallation password, When we are uninstalling the application
Please suggest me where i can put my uninstallation password code in android application. So that at the time of uninstall the application ,The ap开发者_如何学Pythonplication manager should ask me to insert password to uninstall the application.
Not possible. Removing an app is a built-in feature in Android, and quite frankly I would be quite upset if an app would not easily let me remove it.
I understand that you have a security app in mind, but those kind of things would need to happen on the operating system level.
maybe you can implement something like App Lock(http://www.androlib.com/android.application.com-cc-applock-CtBE.aspx),
which checks if com.android.packageinstaller.UninstallerActivity is being started.
精彩评论