正文  高级教程 > APK程序信息 >

卸载android应用程序代码

Uri-->package:+应用程序报名Uri uri = Uri.parse("package:" + packageName);Intent deleteIntent = new Intent();deleteIntent.setType(Intent.ACTION_DELETE);deleteIntent.setData(uri);startActiv......

Uri-->  package: + 应用程序报名


Uri uri = Uri.parse("package:" + packageName);
Intent deleteIntent = new Intent();
deleteIntent.setType(Intent.ACTION_DELETE);
deleteIntent.setData(uri);
startActivityForResult(deleteIntent,START_UNINSTALL_REQUEST_CODE);