Reputation: 17950
I found this service https://admin.appjolt.com/ but I don't know how it works. They are opening browser intent with their ad/cross promo when user decided to uninstall our application. Intent is opening when confirmation dialog shows.
Anybody knows the method? Receiver don't works, they are using some service and listening if some object exist or not. I don't know what they are listening actualy.
Upvotes: 3
Views: 3161
Reputation: 26513
Another option for detecting app uninstall is using native code - You need to monitor for Your directory using inotify
framework in forked process. When it's deleted You run am
command that starts Intent
PoC here: https://github.com/pelotasplus/ActionAfterUninstall/blob/master/app/src/main/jni/hello-jni.c
Upvotes: 1
Reputation: 13558
This topic has already been discussed several times. You can find a detailed collections of partial solutions, examples and related limitations here.
The short answer is that there's no 100% working solutions without using root or acting as system app.
Upvotes: 8
Reputation: 390
I used this several times. Your app has to be installed as a Device administrator. Then you can be notified for different kind of events. Then you can easily create an Intent. I was personnaly sending a push notification.
Have a look at this : http://developer.android.com/guide/topics/admin/device-admin.html
Upvotes: 0