Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.content.*;

public class Main {
    public static boolean isIntentAvailable(Context context, String s) {
        boolean flag;
        if (context.getPackageManager().queryIntentActivities(new Intent(s), 0x10000).size() > 0)
            flag = true;
        else
            flag = false;
        return flag;
    }
}