Freigeben über


Intent.ResolveActivityInfo(PackageManager, PackageInfoFlags) Method

Definition

Resolve the Intent into an ActivityInfo describing the activity that should execute the intent.

[Android.Runtime.Register("resolveActivityInfo", "(Landroid/content/pm/PackageManager;I)Landroid/content/pm/ActivityInfo;", "GetResolveActivityInfo_Landroid_content_pm_PackageManager_IHandler")]
public virtual Android.Content.PM.ActivityInfo? ResolveActivityInfo (Android.Content.PM.PackageManager pm, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("resolveActivityInfo", "(Landroid/content/pm/PackageManager;I)Landroid/content/pm/ActivityInfo;", "GetResolveActivityInfo_Landroid_content_pm_PackageManager_IHandler")>]
abstract member ResolveActivityInfo : Android.Content.PM.PackageManager * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.ActivityInfo
override this.ResolveActivityInfo : Android.Content.PM.PackageManager * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.ActivityInfo

Parameters

pm
PackageManager

The package manager with which to resolve the Intent.

flags
PackageInfoFlags

Addition information to retrieve as per PackageManager#getActivityInfo(ComponentName, int) PackageManager.getActivityInfo().

Returns

PackageManager.ActivityInfo

Attributes

Remarks

Resolve the Intent into an ActivityInfo describing the activity that should execute the intent. Resolution follows the same rules as described for #resolveActivity, but you get back the completely information about the resolved activity instead of just its class name.

Java documentation for android.content.Intent.resolveActivityInfo(android.content.pm.PackageManager, 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

See also