在Android中,你能删除其他应用程序的应用程序? [英] In Android, can you delete an application from another application?

查看:137
本文介绍了在Android中,你能删除其他应用程序的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有一个Android设备上加载的两个应用程序,有没有来电,我可以在一个会删除另一个做什么呢?我在寻找的东西删除类似于如何我可以从另一个启动一个应用程序,一个时尚的应用程序。

If I have two applications loaded on an Android device, are there calls I can make in one that will delete the other one? I am looking for something to delete apps in a fashion similar to how I can launch an app from another.

我认为这可以通过意向书/活动相互作用是可能的,但它似乎并不可能。这似乎喜欢的事,可能不允许出于显而易见的原因,但要检查反正。

I thought this may be possible through the Intent/Activity interactions but it doesn't seem possible. This seems like something that may not be allowed for obvious reasons but wanted to check anyways.

跟进的问题,可以在应用程序中删除自己?

Follow up question, can an application remove itself?

推荐答案

您无法完成,而无需用户同意搬迁,但您可以使用一个意图,弹出一个屏幕,在这里他们可以确认删除:

You cannot complete the removal without user approval, but you can use an intent to bring up a screen where they can confirm the removal:

Uri packageURI = Uri.parse("package:"+"some.package.to.remove");
Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI);
startActivity(uninstallIntent);

这篇关于在Android中,你能删除其他应用程序的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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