get Launch Intent For Package - Android android.content

Android examples for android.content:Intent

Description

get Launch Intent For Package

Demo Code

import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;

public class Main{

    public static Intent getLaunchIntentForPackage(Context context,
            String packageName) {
        return context.getPackageManager().getLaunchIntentForPackage(
                packageName);//from   w w w. ja v  a  2  s .c o m
    }
    public static Intent getLaunchIntentForPackage(Context context,
            String packageName) {
        return context.getPackageManager().getLaunchIntentForPackage(
                packageName);
    }

}

Related Tutorials