Java tutorial
//package com.java2s; //License from project: Apache License import android.content.Context; import android.content.Intent; public class Main { public static void launchApplication(Context context, String pkgname) { Intent intent = context.getPackageManager().getLaunchIntentForPackage(pkgname); intent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT | Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent); } }