Android.Content.PM.PackageManager.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 abstract Android.Graphics.Drawables.Drawable GetActivityIcon (Android.Content.ComponentName activityName)

See Also

PackageManager.GetActivityIcon(Android.Content.Intent)

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.htmlThrown if the resources for the given activity could not be loaded.

Remarks

Retrieve the icon associated with an activity. Given the full name of an activity, retrieves the information about it and calls PackageItemInfo.LoadIcon(PackageManager) to return its icon. If the activity cannot be found, NameNotFoundException is thrown.

[Android Documentation]

Requirements

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