how to make my application device administrator in android?

非 Y 不嫁゛ 提交于 2019-12-18 12:28:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!