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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the application info for the appliction this activity belongs to.
| |||||||||||
Returns the activity icon with badging appropriate for the profile.
| |||||||||||
Returns the component name of this activity.
| |||||||||||
Returns the time at which the package was first installed.
| |||||||||||
Returns the icon for this activity, without any badging for the profile.
| |||||||||||
Retrieves the label for the activity.
| |||||||||||
Returns the name for the acitivty from android:name in the manifest.
| |||||||||||
Returns the user handle of the user profile that this activity belongs to.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns the application info for the appliction this activity belongs to.
Returns the activity icon with badging appropriate for the profile.
density | Optional density for the icon, or 0 to use the default density. Use
DisplayMetrics for DPI values. |
---|
Returns the component name of this activity.
Returns the time at which the package was first installed.
Returns the icon for this activity, without any badging for the profile.
density | The preferred density of the icon, zero for default density. Use
density DPI values from DisplayMetrics . |
---|
Retrieves the label for the activity.
Returns the name for the acitivty from android:name in the manifest.
Returns the user handle of the user profile that this activity belongs to. In order to persist the identity of the profile, do not store the UserHandle. Instead retrieve its serial number from UserManager. You can convert the serial number back to a UserHandle for later use.