Android.Test.Mock.MockPackageManager.GetActivityIcon Method
Retrieve the icon associated with an activity.

Syntax

[Android.Runtime.Register("getActivityIcon", "(Landroid/content/ComponentName;)Landroid/graphics/drawable/Drawable;", "GetGetActivityIcon_Landroid_content_ComponentName_Handler")]
public override Android.Graphics.Drawables.Drawable GetActivityIcon (Android.Content.ComponentName activityName)

Parameters

activityName
Name of the activity whose icon is to be retrieved.

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 the icon associated with an activity. Given the full name of an activity, retrieves the information about it and calls Android.Content.PM.PackageItemInfo.LoadIcon(Android.Content.PM.PackageManager) to return its icon. If the activity cannot be found, NameNotFoundException is thrown.

[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