停止应用程序的卸载 [英] Stop uninstallation of application

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

问题描述

我创建一个应用程序,并在手机上安装它。现在我想补充一点,我的应用程序不应该从手机卸载功能。所以我想,如果下列问题之一可以解决

  1. 反正是有停止卸载用户的应用程序?
  2. 是有可能,如果用户尝试卸载应用程序,我们得到一个消息?
  3. 是有可能,如果用户尝试卸载应用程序,它应该提示输入密码?
  4. 要知道,应用程序,任何其他方式得到了卸载?

请指导我在这方面 在此先感谢

解决方案
  

是有可能,如果用户尝试卸载应用程序,我们得到一个消息?

正如克里斯托弗上面所说的,你可以得到通知,当用户已经删除了您的应用程序。

PACKAGE_REMOVED广播被发送到通知包被除去。你可以用它来获得通知。

但我并不觉得正确的,从删除应用程序prevent用户。 作为UX,其自己的手机,的问题,他们已经得到了充分的权利添加/删除为所欲为。

这是相同的电脑呢!

i create an app and install it on phone. now i want to add a feature that my app should not uninstall from the phone. so i think if one of the following issues could be solved

  1. is there anyway to stop the user from uninstall the app?
  2. is it possible , if user try to uninstall the app we get a message?
  3. is it possible , if user try to uninstall the app it should prompt for a password ?
  4. any other way to know that app got uninstalled?

Please guide me in this regard thanks in advance

解决方案

is it possible , if user try to uninstall the app we get a message?

As Christopher said above, you can be notified when the user has removed your application.

PACKAGE_REMOVED broadcast is sent to notify that a package is removed. You can use it to get notified.

But I don't find it right to "prevent" user from removing your application. As a matter of UX, its their phone, and they've got full rights to add/remove whatever they want.

It is the same with PCs too!

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

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