Java tutorial
//package com.java2s; //License from project: Apache License import android.content.Context; import android.content.Intent; import android.net.Uri; public class Main { public static void uninstallApk(Context context, String packageName) { Intent intent = new Intent("android.intent.action.DELETE"); Uri packageURI = Uri.parse("package:" + packageName); intent.setData(packageURI); context.startActivity(intent); } }