I would like to notify my server that the user deleted the application. How can I accomplish this?
Asked
Active
Viewed 1,157 times
1
-
Check the similar question here. http://stackoverflow.com/questions/3013823/perform-a-task-on-uninstall-in-android – prashant Jul 21 '11 at 16:58
2 Answers
0
Unfortunately there is currently no way for an Android package to execute code when it is removed. However, you can register a BroadcastReceiver
for ACTION_PACKAGE_REMOVED
in a different package that will be called when packages are removed from the phone.
Also see this question.

Community
- 1
- 1

Sahil Mahajan Mj
- 11,033
- 8
- 53
- 100
0
Get application uninstall event in android
According to this post what you ask for is not possible. Are you by any chance using a C2DM implementation?

Community
- 1
- 1

Kevin King
- 1,549
- 11
- 14
-
no, do you know if main activity's onDestroy() method will trigger before it starts to uninstall (if app is running already)? I might be able to work with that. – Michael Jul 21 '11 at 17:12
-
Test it out. Shouldn't take long to try. Remember to comment back with your results! – Kevin King Jul 21 '11 at 17:14