get Intent Receive Apps - Android App

Android examples for App:APK Information

Description

get Intent Receive Apps

Demo Code


//package com.java2s;

import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;

import java.util.List;

public class Main {
    public static List<ResolveInfo> getIntentReceiveApps(Context context,
            Intent intent) {//from   w  w w.  j a  v  a  2s  .  c o m
        PackageManager pm = context.getPackageManager();
        return pm.queryIntentActivities(intent,
                PackageManager.MATCH_DEFAULT_ONLY);
    }
}

Related Tutorials