卸载APK:卸载之前最后一个动作 [英] Uninstalling APK : one last action before uninstall

查看:222
本文介绍了卸载APK:卸载之前最后一个动作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Android开发的应用程序,安装的东西在手机的SIM卡上。 我wan't是应用程序做在卸载最后一个动作:删除什么SIM卡里面。 这意味着:我需要做最后一个动作时,我的APK卸载

I'm developing an application for Android that installs stuff on the phone's sim card. What I wan't is for the application to do one last action upon uninstall : remove what's inside the sim card. Which means : I need to do one last action when my APK is uninstalled.

问题:我没有找到任何办法这样做。 (除了有一个辅助应用,映入卸载的意图,做这项工作,但是这是非常faaaaar从我wan't我怕)

Problem : I didn't find any way to do so. (Apart from having a secondary application, that catches the uninstall intent, and does the job, but that's very faaaaar from what I wan't I'm afraid)

如果任何人有一个解决方案,我真的很感兴趣。

If anyone has a solution, I'm really interested.

在此先感谢。

(PS:我有点担心是没有的,其实)

(PS : I'm kind of afraid that there is none, actually)

推荐答案

您是正确的。有没有这样的情况下,并没有支持的方法得到通知,当你的应用程序被卸载。应用程序的过程简直是杀(如果正在运行),并卸载应用程序。

You are correct. There is no such event, and there is no supported way to get notified when your application is being uninstalled. Application's process is simply killed (if it was running) and application is uninstalled.

这篇关于卸载APK:卸载之前最后一个动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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