【发布时间】: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