Android.Test.Mock.MockPackageManager.GetActivityInfo Method
Retrieve all of the information we know about a particular activity class.

Syntax

[Android.Runtime.Register("getActivityInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;", "GetGetActivityInfo_Landroid_content_ComponentName_IHandler")]
public override Android.Content.PM.ActivityInfo GetActivityInfo (Android.Content.ComponentName className, [Android.Runtime.GeneratedEnum] Android.Content.PM.PackageInfoFlags flags)

Parameters

className
The full component name (i.e. com.google.apps.contacts/com.google.apps.contacts.ContactsList) of an Activity class.
flags
Additional option flags. Use any combination of Android.Content.PM.PackageManager.GET_META_DATA, Android.Content.PM.PackageManager.GET_SHARED_LIBRARY_FILES, to modify the data (in ApplicationInfo) returned.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
!:NoType:android/content/pm/PackageManager$NameNotFoundException;Href=../../../../reference/android/content/pm/PackageManager.NameNotFoundException.html

Remarks

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

Throws NoType:android/content/pm/PackageManager$NameNotFoundException;Href=../../../../reference/android/content/pm/PackageManager.NameNotFoundException.html if an activity with the given class name cannot be found on the system.

[Android Documentation]

Requirements

Namespace: Android.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1