I am developing the android application in which
-
The application has a stored password (set by user when application is first installed)
-
My application is the device administrator
The issue is when user clicks on uninstall of this application , i want user to input the password of the application
The process i will follow there after is :
- Show password Page
- Remove Device admin Rights by certain code
- Allow un-installing
Please help me with the detection of the uninstall click of my application to shoot the password page.. !!
Thanks in advance !
Do you mean to intercept the uninstall of your app, and query for a password? That is not possible. Similar questions has been asked before, for example here.
Edit: It does seem as some related things can be done by making your application a Device Admin Application:
However I am not familiar with the restrictions that comes with this, and if it allows your exact use case.