转载请注明出处:http://blog.csdn.net/l1028386804/article/details/47357729
不多说,不废话,直接上代码,大家都懂得
//卸载应用程序
//參数为要卸载的应用程序的包名
public void uninstallPkg(String packageName){
Intent intent = new Intent();
intent.setAction(Intent.ACTION_DELETE);
intent.setData(Uri.parse("package:" + packageName));
startActivity(intent);
}