如何显示一个活动之前,我的应用程序卸载(安卓) [英] How to show an Activity BEFORE my app is uninstalled (Android)

查看:122
本文介绍了如何显示一个活动之前,我的应用程序卸载(安卓)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不过,我觉得这是不可能的,但我注意到,NQ移动安全能够显示后,我点击卸载之前的PackageUninstaller称为消息。 我想复制我的应用程序这种行为。

我试图用活动听android.intent.action.DELETE意图,如下建议: <一href="http://stackoverflow.com/questions/8686673/how-to-know-my-app-is-uninstalled-from-the-device">How要知道我的应用程序从设备上卸载......?

但正如我将要卸载我的应用程序,选择器会弹出询问来接我的应用程序或包卸载程序。我怎样才能避免这种情况?

是否有不同的方式来拦截你的应用程序卸载事件? (回答,这是不可能的前,请尝试卸载NQ移动安全,看看会发生什么。在我的Andr​​oid 2.3.4它显示了一个漂亮的屏幕说是不是安全去无安全应用程序)。

解决方案
  

我注意到,NQ移动安全能够显示后,我点击卸载和消息PackageUninstaller调用之前

它们必须在开发Android的一些安全漏洞。我会研究它,看看我能得到固定。应用程序不应该得到的卸载时间的控制。

感谢您指出了这一点!

  

是否有不同的方式来拦截你的应用程序卸载事件?

我当然希望不会。

I though it was not possible but I noticed that NQ Mobile Security is able to show a message after I click on Uninstall and before the PackageUninstaller is called. I would like to replicate this behavior in my App.

I tried with an Activity listening to "android.intent.action.DELETE" Intent, as suggested here: How to know my app is uninstalled from the device...?

But as I'm about to uninstall my app, the chooser pops up asking to pick my application or the package uninstaller. How can I avoid this?

Is there a different way to intercept your application UNINSTALL event? (before answering that it is not possible, please try to uninstall NQ Mobile Security and see what happens. On my Android 2.3.4 it shows a nice screen saying that is not safe to go without a security app).

解决方案

I noticed that NQ Mobile Security is able to show a message after I click on Uninstall and before the PackageUninstaller is called

They must be exploiting some security flaw in Android. I will research it and see if I can get it fixed. Apps are not supposed to get control at uninstall time.

Thanks for pointing this out!

Is there a different way to intercept your application UNINSTALL event?

I sure hope not.

这篇关于如何显示一个活动之前,我的应用程序卸载(安卓)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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