Java tutorial
//package com.java2s; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.text.TextUtils; public class Main { public static boolean uninstallApk(Context context, String packageName) { if (TextUtils.isEmpty(packageName)) { return false; } Intent i = new Intent(Intent.ACTION_DELETE, Uri.parse("package:" + packageName)); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(i); return true; } }