Android之——实现应用卸载功能
16lz
2021-01-23
转载请注明出处:http://blog.csdn.net/l1028386804/article/details/47174919
不多说,不废话,直接上代码,大家一看都明白
//卸载应用程序public void unstallApp(){Intent uninstall_intent = new Intent();uninstall_intent.setAction(Intent.ACTION_DELETE);uninstall_intent.setData(Uri.parse("package:"+你要卸载的应用程序包名));startActivity(uninstall_intent);}