在卸载android系统中执行任务 [英] Perform a task on uninstall in android

查看:103
本文介绍了在卸载android系统中执行任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个Android应用程序。 现在我想执行一些操作 - 在目前的应用程序被从手机卸载(即重新设置等。)

I have developed an Android app. Now I want to perform a few operations (i. e. - Reset the settings etc.. ) at the moment the app gets uninstalled from the phone.

是否有可能reigster侦听器或一个名为在应用程序被删除的那一刻功能?

Is it possible to reigster a listener or a function that is called at the moment the app is removed?

推荐答案

不幸的是,在的android此刻不给你一种可能性,目前您的应用程序进行卸载code。

Sadly android at the moment does not give you a possibility to perform code at the moment your app is uninstalled.

所有这些都通过共享preferences设置设置与一切在申请数据的高速缓存文件夹中删除在一起。

All the settings that are set via the SharedPreferences are deleted together with everything in the Application Data an Cache folder.

这将持续存在的唯一的事情是写入SD卡和所做的任何更改手机设置数据。我不知道发生了一个通过你的应用程序同步到联系人数据的内容。

The only thing that will persist is the data that is written to the SD-Card and any changes to phone settings that are made. I don't know what happens to data that is synchronized to the contacts through your app.

这篇关于在卸载android系统中执行任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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