Here you can find the source of getAppStartIntent(Context context)
public static final Intent getAppStartIntent(Context context)
//package com.java2s; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; public class Main { public static final String PACKAGE_NAME = "org.c_base.c_beam"; public static final Intent getAppStartIntent(Context context) { try {//from w ww. j a v a 2 s. c o m PackageManager manager = context.getPackageManager(); Intent intent = manager.getLaunchIntentForPackage(PACKAGE_NAME); intent.addCategory(Intent.CATEGORY_LAUNCHER); return intent; } catch (Exception e) { return null; } } }