Java tutorial
//package com.java2s; import android.content.Context; import android.content.Intent; import android.net.Uri; public class Main { private static void uninstallAppByClick(Context context, String pkgName) { Intent intent = new Intent(); intent.setAction(Intent.ACTION_DELETE); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setData(Uri.parse("package:" + pkgName)); context.startActivity(intent); } }