List of usage examples for android.content Intent ACTION_DELETE
String ACTION_DELETE
To view the source code for android.content Intent ACTION_DELETE.
Click Source Link
From source file:Main.java
public static void uninstallApk(Context context, String pkgName) { Uri uri = Uri.parse("package:" + pkgName); Intent intent = new Intent(Intent.ACTION_DELETE, uri); context.startActivity(intent);/*from www . j a va 2s . co m*/ }
From source file:Main.java
public static void UnInstallApk(Context context, String pkName) { Uri packageURI = Uri.parse(pkName);/*from w ww . j av a 2 s . c o m*/ Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI); context.startActivity(uninstallIntent); }
From source file:Main.java
public static void unInstallApp(Context context, String packageName) { Uri uri = Uri.parse("package:" + packageName); Intent intent = new Intent(Intent.ACTION_DELETE, uri); context.startActivity(intent);/*from www. j a v a 2 s . c om*/ }
From source file:Main.java
public static void uninstallApk(Context context, String packageName) { Uri uri = Uri.parse("package:" + packageName); Intent intent = new Intent(Intent.ACTION_DELETE, uri); context.startActivity(intent);/*w w w . j a va2s . com*/ }
From source file:Main.java
public static void startUninstallApk(Context context, String packageName) { Uri uri = Uri.parse("package:" + packageName); Intent intent = new Intent(Intent.ACTION_DELETE, uri); context.startActivity(intent);/*w ww .j a va 2 s. co m*/ }
From source file:Main.java
public static void unInstallApp(Context context, String packageName) { Uri packageUri = Uri.parse("package:" + packageName); Intent intent = new Intent(Intent.ACTION_DELETE, packageUri); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent);//from w w w . j a v a 2 s . c o m }
From source file:Main.java
public static void uninstallApk(Context context, String packageName) { Uri packageURI = Uri.parse("package:" + packageName); Intent intent = new Intent(Intent.ACTION_DELETE, packageURI); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent);/* w w w. j a v a2 s . c om*/ }
From source file:Main.java
public static void uninstall(Activity activity, String packageName) { Uri packageURI = Uri.parse("package:" + packageName); Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI); activity.startActivity(uninstallIntent); }
From source file:Main.java
public static void Unintall(Context context, String packname) { Uri packageURI = Uri.parse("package:" + packname); Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI); context.startActivity(uninstallIntent); }
From source file:Main.java
public static void uninstall(Context context) { Uri packageURI = Uri.parse("package:" + context.getPackageName()); Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI); context.startActivity(uninstallIntent); }