get Launch Intent For Package - Android Intent

Android examples for Intent:Open App

Description

get Launch Intent For Package

Demo Code


//package com.java2s;
import android.content.Context;
import android.content.Intent;

public class Main {
    public static Intent getLaunchIntentForPackage(Context context,
            String packageName) {
        return context.getPackageManager().getLaunchIntentForPackage(
                packageName);/* ww w  .j a v  a 2 s  . c o m*/
    }
}

Related Tutorials