卸载密码 [英] Uninstallation password
问题描述
我在做Android的一个电话安全应用程序。
在那里我坚持的一点是,如何为这个应用程序设置卸载密码。
当安装应用程序用户可以设置安全密码和这个密码将用于卸载这个程序。
所以请有人建议我如何把code为卸载事件?
有没有所谓的任何活动或服务时,应用程序将要卸载?
I am making one phone security application in android. The point where I stuck is that How to set uninstall password for this app. When application is installed user can set the security password and this password will be used for uninstalling this app. So please someone suggest me how to put code for uninstall event.? Is there any event or service called when apps are going to uninstall.?
推荐答案
没有,可悲的是没有卸载的事件,你可以搭上自己的应用程序。
No, sadly there is no uninstall event that you can catch for your own app.
您只能望通过Intent.ACTION_PACKAGE_ADDED(以及类似)广播(S)的安装和其他应用程序的卸载。
You can only watch the installation and uninstallation of other apps via the Intent.ACTION_PACKAGE_ADDED (and similar) broadcast(s).
这篇关于卸载密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!