public class LauncherActivityInfo extends Object
Modifier and Type | Method and Description |
---|---|
int |
getApplicationFlags()
Returns the application flags from the ApplicationInfo of the activity.
|
ApplicationInfo |
getApplicationInfo()
Returns the application info for the appliction 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.
|
String |
getName()
Returns the name for the acitivty from android:name in the manifest.
|
UserHandle |
getUser()
Returns the user handle of the user profile that this activity belongs to.
|
public ComponentName getComponentName()
public UserHandle getUser()
UserManager.getSerialNumberForUser(UserHandle)
,
UserManager.getUserForSerialNumber(long)
public CharSequence getLabel()
public Drawable getIcon(int density)
density
- The preferred density of the icon, zero for default density. Use
density DPI values from DisplayMetrics
.getBadgedIcon(int)
,
DisplayMetrics
public int getApplicationFlags()
public ApplicationInfo getApplicationInfo()
public long getFirstInstallTime()
public String getName()
public Drawable getBadgedIcon(int density)
density
- Optional density for the icon, or 0 to use the default density. Use
DisplayMetrics
for DPI values.DisplayMetrics