Java tutorial
//package com.java2s; //License from project: Apache License import android.content.Context; import android.content.Intent; import android.content.pm.ResolveInfo; import android.support.annotation.NonNull; import java.util.List; public class Main { @NonNull public static List<ResolveInfo> getResolution(@NonNull Context context, @NonNull Intent intent) { return context.getPackageManager().queryIntentActivities(intent, 0); } }