可能重复:
Is it possible to programmatically uninstall a package in Android在android中卸载应用程序?
我们可以通过以下步骤来删除软件包:
Uri uri = Uri.fromParts("package", strPackageName, null);
Intent it = new Intent(Intent.ACTION_DELETE, uri);
startActivity(it);
但这种方式,应用程序管理器的用户界面会显示出来,我的问题是如何静默删除软件包(没有显示Applications Manager的UI)。