exist Tel App - Android App

Android examples for App:APK Information

Description

exist Tel 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 existTelApp(Context context) {
        Intent it = new Intent(Intent.ACTION_DIAL);
        return verifyIntentReceiveApp(context, it);
    }/*w w w . ja 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