Sending data to server when android application is unistalled

六月ゝ 毕业季﹏ 提交于 2019-12-11 07:50:06

问题


I would like to notify my server that the user deleted the application. How can I accomplish this?


回答1:


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?




回答2:


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.



来源:https://stackoverflow.com/questions/6779813/sending-data-to-server-when-android-application-is-unistalled

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!