Java tutorial
//package com.java2s; import android.content.Context; import android.content.Intent; import android.content.pm.ResolveInfo; public class Main { private static void startActivityByResolve(Context context, ResolveInfo r, Intent intent) { Intent intent2 = new Intent(intent); intent2.setClassName(r.activityInfo.packageName, r.activityInfo.name); intent2.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.getApplicationContext().startActivity(intent2); } }