获取Android应用程序卸载事件 [英] Get application uninstall event in android

查看:287
本文介绍了获取Android应用程序卸载事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,它与内容提供商(联系人等)起到现在,当我卸载我的应用程序,我想编曲内容提供商的原始数据。

Hi i have one application which play with content provider(contacts etc) now when i uninstall my application i want to arranger the original data of content provider.

有什么办法,如果我的应用程序要卸载,当时我得到的事件,做我的工作。

Is there any way, if my application is going uninstall at that time i get event and do my work.

感谢

推荐答案

当它被卸载您的申请将不被告知。但是,Android将摆脱在应用程序的本地数据存储的所有数据(例如, getFilesDir())。

Your application will not be informed when it is being uninstalled. However, Android will get rid of all data in your application local data store (e.g., getFilesDir()).

这篇关于获取Android应用程序卸载事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆