exist Email App - Android App

Android examples for App:APK Information

Description

exist Email App

Demo Code


//package com.java2s;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;

public class Main {
    public static boolean existEmailApp(Context context) {
        Intent intent = new Intent(Intent.ACTION_SEND);
        return verifyIntentReceiveApp(context, intent);
    }//from   ww w. j a v  a  2 s . co m

    public static boolean verifyIntentReceiveApp(Context context,
            Intent intent) {
        PackageManager pm = context.getPackageManager();
        ComponentName componentName = intent.resolveActivity(pm);
        return componentName != null;
    }
}

Related Tutorials