String packagename = "com.android.gcihjt"; PackageInfo packageInfo; try { packageInfo = this.getPackageManager().getPackageInfo( packagename, 0); } catch (NameNotFoundException e) { packageInfo = null; e.printStackTrace(); } if(packageInfo ==null){ System.out.println("not installed"); }else{ System.out.println("is installed"); Uri uninstallUri = Uri.fromParts( "package" , packagename , null ); Intent mIntent = new Intent(Intent.ACTION_DELETE, uninstallUri); startActivity(mIntent); }