PackageManager.GetActivityInfo(ComponentName, PackageInfoFlags) Method

Definition

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

ActivityInfo

An ActivityInfo containing information about the activity.

Attributes

Exceptions

Remarks

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