Added in API level 21

LauncherActivityInfo


public class LauncherActivityInfo
extends Object

java.lang.Object
   ↳ android.content.pm.LauncherActivityInfo


A representation of an activity that can belong to this user or a managed profile associated with this user. It can be used to query the label, icon and badged icon for the activity.

Summary

Public methods

ActivityInfo getActivityInfo()

Returns the ActivityInfo of the activity.

ApplicationInfo getApplicationInfo()

Returns the application info for the application this activity belongs to.

Drawable getBadgedIcon(int density)

Returns the activity icon with badging appropriate for the profile.

ComponentName getComponentName()

Returns the component name of this activity.

long getFirstInstallTime()

Returns the time at which the package was first installed.

Drawable getIcon(int density)

Returns the icon for this activity, without any badging for the profile.

CharSequence getLabel()

Retrieves the label for the activity.