【问题标题】:Uninstall application in android? [duplicate]在android中卸载应用程序? [复制]
【发布时间】:2012-03-24 17:31:41
【问题描述】:

可能重复:
Is it possible to programmatically uninstall a package in Android

我们可以通过以下步骤删除包:

Uri uri = Uri.fromParts("package", strPackageName, null);

Intent it = new Intent(Intent.ACTION_DELETE, uri);

startActivity(it);

但是这样会显示Applications Manager的UI,我的问题是如何静默删除包(不显示Applications Manager的UI)。

【问题讨论】:

    标签: android


    【解决方案1】:

    希望对你有所帮助,

    Install and Uninstall Android applications with PackageInstaller

    先尝试谷歌搜索,没有得到回应。然后,在这里提问。

    【讨论】:

      【解决方案2】:

      有一篇关于 SO 的帖子可能会对您有所帮助。

      install / uninstall APKs programmatically (PackageManager vs Intents)

      最后一个答案给出了如何去做的教程。

      【讨论】:

        猜你喜欢
        • 2015-05-01
        • 2011-06-26
        • 2011-03-24
        • 2015-01-24
        • 2012-04-13
        • 2011-01-01
        • 1970-01-01
        • 2012-12-12
        • 2019-08-15
        相关资源
        最近更新 更多