Need to perform some activity during the unistallation of an Android app

送分小仙女□ 提交于 2019-12-20 05:56:47

问题


I am working on an app in which i need to log, if user uninstalls the app. So i am following this approach How can an app detect that it's going to be uninstalled?

But i am facing the same problem as in this post Can't get receiver when the app uninstall. As my phone is Android 4.4... Can anybody post the exact solution (code) to solve this problem???

Edit: During uninstallation QUERY_PACKAGE_RESTART intent should be broadcasted but i am not recieving it. I declared it in manifest as well i created a broadcastreceiver which is listening for this intent... I did it exactly same way as Can't get receiver when the app uninstall. I am not receiving the intent. What to do?

来源:https://stackoverflow.com/questions/27701003/need-to-perform-some-activity-during-the-unistallation-of-an-android-app

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