Share via


PackageManager.GetApplicationLogo Method

Definition

Overloads

GetApplicationLogo(ApplicationInfo)

Retrieve the logo associated with an application.

GetApplicationLogo(String)

Retrieve the logo associated with an application.

GetApplicationLogo(ApplicationInfo)

Retrieve the logo associated with an application.

[Android.Runtime.Register("getApplicationLogo", "(Landroid/content/pm/ApplicationInfo;)Landroid/graphics/drawable/Drawable;", "GetGetApplicationLogo_Landroid_content_pm_ApplicationInfo_Handler")]
public abstract Android.Graphics.Drawables.Drawable? GetApplicationLogo (Android.Content.PM.ApplicationInfo info);
[<Android.Runtime.Register("getApplicationLogo", "(Landroid/content/pm/ApplicationInfo;)Landroid/graphics/drawable/Drawable;", "GetGetApplicationLogo_Landroid_content_pm_ApplicationInfo_Handler")>]
abstract member GetApplicationLogo : Android.Content.PM.ApplicationInfo -> Android.Graphics.Drawables.Drawable

Parameters

info
ApplicationInfo

Information about application being queried.

Returns

Returns the image of the logo, or null if no logo is specified by the application.

Attributes

Remarks

Retrieve the logo associated with an application. If it has not specified a logo, this method returns null.

Java documentation for android.content.pm.PackageManager.getApplicationLogo(android.content.pm.ApplicationInfo).

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.

See also

Applies to

GetApplicationLogo(String)

Retrieve the logo associated with an application.

[Android.Runtime.Register("getApplicationLogo", "(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;", "GetGetApplicationLogo_Ljava_lang_String_Handler")]
public abstract Android.Graphics.Drawables.Drawable? GetApplicationLogo (string packageName);
[<Android.Runtime.Register("getApplicationLogo", "(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;", "GetGetApplicationLogo_Ljava_lang_String_Handler")>]
abstract member GetApplicationLogo : string -> Android.Graphics.Drawables.Drawable

Parameters

packageName
String

Name of the package whose application logo is to be retrieved.

Returns

Returns the image of the logo, or null if no application logo has been specified.

Attributes

Exceptions

Thrown if the resources for the given application could not be loaded.

Remarks

Retrieve the logo associated with an application. Given the name of the application's package, retrieves the information about it and calls getApplicationLogo() to return its logo. If the application cannot be found, NameNotFoundException is thrown.

Java documentation for android.content.pm.PackageManager.getApplicationLogo(java.lang.String).

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.

See also

Applies to