- The first time your app is installed, install a separate application/package ("watcher").
- The only classes "watcher" contains is a BroadcastReceiver that listens for
ACTION_PACKAGE_REMOVED
- Add a BroadcastReceiver to your application that also listens for
ACTION_PACKAGE_REMOVED
- When a intent is broadcast to one of your receivers, check if the other component is still installed. If is isn't (the user just uninstalled it), prompt for the password - if it's wrong, reinstall the other component. If it's right, uninstall yourself.
Android 监控应用删除,并提示处理
最新推荐文章于 2021-05-25 19:21:00 发布