is Launchable App - Android App

Android examples for App:App Running

Description

is Launchable App

Demo Code


//package com.java2s;
import android.content.Context;
import android.content.pm.ApplicationInfo;

public class Main {
    public static boolean isLaunchableApp(Context context,
            ApplicationInfo applicationInfo) {
        return !((applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0 || context
                .getPackageManager().getLaunchIntentForPackage(
                        applicationInfo.packageName) == null);
    }/*from   www  . j  av  a 2s.co  m*/
}

Related Tutorials