问题
I am trying to make my application device administrator , i followed some notes provided on the same at Device admin SAMPLE notes or TUTORIAL here but still could not implement it.
Can some one plz point out a working example of the same , i just need to make sure that to uninstall the application , user needs to enter the password which is set in my application.
Any help will be useful , Thanks in advance
回答1:
i just need to make sure that to uninstall the application , user needs to enter the password which is set in my application.
Fortunately, this is not possible for an SDK application. Even a device admin app cannot prevent the user from uninstalling it.
回答2:
I found the sample tutorial here. I hope it will help you.
Warning :::: If you click "Reset Device", your device will be factory reset because of
devicePolicyManager.wipeData(ACTIVATION_REQUEST);
回答3:
yes It is possible to make such an app that can take password before getting uninstall. Install this app "Findroid" App that has this functionality from google Play. In this app first you need to unlock your app then only u can uninstall it.
来源:https://stackoverflow.com/questions/10994558/how-to-make-my-application-device-administrator-in-android