How can we handle the uninstall event of Android app?

How can we handle the uninstall event of Android app?
Answer
Here is a way you can get uninstall event of your own app. Using
inotify in native code. For example: You can using inotify_add_watch to monitor your application’s data cache folder like: /data/data/your-package-name/cache . When your application gets uninstalled, you can get the folder’s delete event.
 

Tìm kiếm

Back
Top