Share via


PackageManager.QueryIntentActivities Method

Definition

Overloads

QueryIntentActivities(Intent, PackageInfoFlags)

Retrieve all activities that can be performed for the given intent.

QueryIntentActivities(Intent, PackageManager+ResolveInfoFlags)

QueryIntentActivities(Intent, PackageInfoFlags)

Retrieve all activities that can be performed for the given intent.

[Android.Runtime.Register("queryIntentActivities", "(Landroid/content/Intent;I)Ljava/util/List;", "GetQueryIntentActivities_Landroid_content_Intent_IHandler")]
public abstract System.Collections.Generic.IList<Android.Content.PM.ResolveInfo> QueryIntentActivities (Android.Content.Intent intent, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("queryIntentActivities", "(Landroid/content/Intent;I)Ljava/util/List;", "GetQueryIntentActivities_Landroid_content_Intent_IHandler")>]
abstract member QueryIntentActivities : Android.Content.Intent * Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>

Parameters

intent
Intent

The desired intent as per resolveActivity().

flags
PackageInfoFlags

Additional option flags to modify the data returned. The most important is #MATCH_DEFAULT_ONLY, to limit the resolution to only those activities that support the android.content.Intent#CATEGORY_DEFAULT. Or, set #MATCH_ALL to prevent any filtering of the results.

Returns

Returns a List of ResolveInfo objects containing one entry for each matching activity, ordered from best to worst. In other words, the first item is what would be returned by #resolveActivity. If there are no matching activities, an empty list is returned.

Attributes

Remarks

Retrieve all activities that can be performed for the given intent.

Use #queryIntentActivities(Intent, ResolveInfoFlags) when long flags are needed.

Java documentation for android.content.pm.PackageManager.queryIntentActivities(android.content.Intent, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

QueryIntentActivities(Intent, PackageManager+ResolveInfoFlags)

[Android.Runtime.Register("queryIntentActivities", "(Landroid/content/Intent;Landroid/content/pm/PackageManager$ResolveInfoFlags;)Ljava/util/List;", "GetQueryIntentActivities_Landroid_content_Intent_Landroid_content_pm_PackageManager_ResolveInfoFlags_Handler", ApiSince=33)]
public virtual System.Collections.Generic.IList<Android.Content.PM.ResolveInfo> QueryIntentActivities (Android.Content.Intent intent, Android.Content.PM.PackageManager.ResolveInfoFlags flags);
[<Android.Runtime.Register("queryIntentActivities", "(Landroid/content/Intent;Landroid/content/pm/PackageManager$ResolveInfoFlags;)Ljava/util/List;", "GetQueryIntentActivities_Landroid_content_Intent_Landroid_content_pm_PackageManager_ResolveInfoFlags_Handler", ApiSince=33)>]
abstract member QueryIntentActivities : Android.Content.Intent * Android.Content.PM.PackageManager.ResolveInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>
override this.QueryIntentActivities : Android.Content.Intent * Android.Content.PM.PackageManager.ResolveInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>

Parameters

intent
Intent

Returns

Attributes

Applies to