PackageManager.GetActivityInfo Method

Definition

Overloads

GetActivityInfo(ComponentName, PackageManager+ComponentInfoFlags)
GetActivityInfo(ComponentName, PackageInfoFlags)

Retrieve all of the information we know about a particular activity class.

GetActivityInfo(ComponentName, PackageManager+ComponentInfoFlags)

[Android.Runtime.Register("getActivityInfo", "(Landroid/content/ComponentName;Landroid/content/pm/PackageManager$ComponentInfoFlags;)Landroid/content/pm/ActivityInfo;", "GetGetActivityInfo_Landroid_content_ComponentName_Landroid_content_pm_PackageManager_ComponentInfoFlags_Handler", ApiSince=33)]
public virtual Android.Content.PM.ActivityInfo GetActivityInfo (Android.Content.ComponentName component, Android.Content.PM.PackageManager.ComponentInfoFlags flags);
[<Android.Runtime.Register("getActivityInfo", "(Landroid/content/ComponentName;Landroid/content/pm/PackageManager$ComponentInfoFlags;)Landroid/content/pm/ActivityInfo;", "GetGetActivityInfo_Landroid_content_ComponentName_Landroid_content_pm_PackageManager_ComponentInfoFlags_Handler", ApiSince=33)>]
abstract member GetActivityInfo : Android.Content.ComponentName * Android.Content.PM.PackageManager.ComponentInfoFlags -> Android.Content.PM.ActivityInfo
override this.GetActivityInfo : Android.Content.ComponentName * Android.Content.PM.PackageManager.ComponentInfoFlags -> Android.Content.PM.ActivityInfo

Parameters

component
ComponentName

Returns

Attributes

Applies to

GetActivityInfo(ComponentName, PackageInfoFlags)

Retrieve all of the information we know about a particular activity class.

[Android.Runtime.Register("getActivityInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;", "GetGetActivityInfo_Landroid_content_ComponentName_IHandler")]
public abstract Android.Content.PM.ActivityInfo GetActivityInfo (Android.Content.ComponentName component, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getActivityInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;", "GetGetActivityInfo_Landroid_content_ComponentName_IHandler")>]
abstract member GetActivityInfo : Android.Content.ComponentName * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.ActivityInfo

Parameters

component
ComponentName

The full component name (i.e. com.google.apps.contacts/com.google.apps.contacts. ContactsList) of an Activity class.

flags
PackageInfoFlags

Additional option flags to modify the data returned.

Returns

An ActivityInfo containing information about the activity.

Attributes

Exceptions

Remarks

Retrieve all of the information we know about a particular activity class.

Use #getActivityInfo(ComponentName, ComponentInfoFlags) when long flags are needed.

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