NotificationManager
public
class
NotificationManager
extends Object
java.lang.Object | |
↳ | android.app.NotificationManager |
Class to notify the user of events that happen. This is how you tell the user that something has happened in the background.
Notifications can take different forms:
- A persistent icon that goes in the status bar and is accessible through the launcher, (when the user selects it, a designated Intent can be launched),
- Turning on or flashing LEDs on the device, or
- Alerting the user by flashing the backlight, playing a sound, or vibrating.
Each of the notify methods takes an int id parameter and optionally a
String
tag parameter, which may be null
. These parameters
are used to form a pair (tag, id), or (null
, id) if tag is
unspecified. This pair identifies this notification from your app to the
system, so that pair should be unique within your app. If you call one
of the notify methods with a (tag, id) pair that is currently active and
a new set of notification parameters, it will be updated. For example,
if you pass a new status bar icon, the old icon in the status bar will
be replaced with the new one. This is also the same tag and id you pass
to the cancel(int)
or cancel(String, int)
method to clear
this notification.
Developer Guides
For a guide to creating notifications, read the Status Bar Notifications developer guide.
Instances of this class must be obtained using Context.getSystemService(Class)
with the argument NotificationManager.class
or Context.getSystemService(String)
with the argument Context.NOTIFICATION_SERVICE
.
See also:
Summary
Nested classes | |
---|---|
class |
NotificationManager.Policy
Notification policy configuration. |
Constants | |
---|---|
String |
ACTION_APP_BLOCK_STATE_CHANGED
Intent that is broadcast when an application is blocked or unblocked. |
String |
ACTION_INTERRUPTION_FILTER_CHANGED
Intent that is broadcast when the state of getCurrentInterruptionFilter() changes. |
String |
ACTION_NOTIFICATION_CHANNEL_BLOCK_STATE_CHANGED
Intent that is broadcast when a |
String |
ACTION_NOTIFICATION_CHANNEL_GROUP_BLOCK_STATE_CHANGED
Intent that is broadcast when a |
String |
ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED
Intent that is broadcast when the state of |
String |
ACTION_NOTIFICATION_POLICY_CHANGED
Intent that is broadcast when the state of getNotificationPolicy() changes. |
String |
EXTRA_BLOCKED_STATE
Extra for |
String |
EXTRA_NOTIFICATION_CHANNEL_GROUP_ID
Extra for |
String |
EXTRA_NOTIFICATION_CHANNEL_ID
Extra for |
int |
IMPORTANCE_DEFAULT
Default notification importance: shows everywhere, makes noise, but does not visually intrude. |
int |
IMPORTANCE_HIGH
Higher notification importance: shows everywhere, makes noise and peeks. |
int |
IMPORTANCE_LOW
Low notification importance: shows everywhere, but is not intrusive. |
int |
IMPORTANCE_MAX
Unused. |
int |
IMPORTANCE_MIN
Min notification importance: only shows in the shade, below the fold. |
int |
IMPORTANCE_NONE
A notification with no importance: does not show in the shade. |
int |
IMPORTANCE_UNSPECIFIED
Value signifying that the user has not expressed an importance. |
int |
INTERRUPTION_FILTER_ALARMS
|
int |
INTERRUPTION_FILTER_ALL
|
int |
INTERRUPTION_FILTER_NONE
|
int |
INTERRUPTION_FILTER_PRIORITY
|
int |
INTERRUPTION_FILTER_UNKNOWN
|
Public methods | |
---|---|
String
|
addAutomaticZenRule(AutomaticZenRule automaticZenRule)
Creates the given zen rule. |
boolean
|
areNotificationsEnabled()
Returns whether notifications from the calling package are blocked. |
void
|
cancel(int id)
Cancel a previously shown notification. |
void
|
cancel(String tag, int id)
Cancel a previously shown notification. |
void
|
cancelAll()
Cancel all previously shown notifications. |
void
|
createNotificationChannel(NotificationChannel channel)
Creates a notification channel that notifications can be posted to. |
void
|
createNotificationChannelGroup(NotificationChannelGroup group)
Creates a group container for |
void
|
createNotificationChannelGroups(List<NotificationChannelGroup> groups)
Creates multiple notification channel groups. |
void
|
createNotificationChannels(List<NotificationChannel> channels)
Creates multiple notification channels that different notifications can be posted to. |
void
|
deleteNotificationChannel(String channelId)
Deletes the given notification channel. |
void
|
deleteNotificationChannelGroup(String groupId)
Deletes the given notification channel group, and all notification channels that belong to it. |
StatusBarNotification[]
|
getActiveNotifications()
Recover a list of active notifications: ones that have been posted by the calling app that
have not yet been dismissed by the user or |
AutomaticZenRule
|
getAutomaticZenRule(String id)
Returns the AutomaticZenRule with the given id, if it exists and the caller has access. |
Map<String, AutomaticZenRule>
|
getAutomaticZenRules()
Returns AutomaticZenRules owned by the caller. |
final
int
|
getCurrentInterruptionFilter()
Gets the current notification interruption filter. |
int
|
getImportance()
Returns the user specified importance for notifications from the calling package. |
NotificationChannel
|
getNotificationChannel(String channelId)
Returns the notification channel settings for a given channel id. |
NotificationChannelGroup
|
getNotificationChannelGroup(String channelGroupId)
Returns the notification channel group settings for a given channel group id. |
List<NotificationChannelGroup>
|
getNotificationChannelGroups()
Returns all notification channel groups belonging to the calling app. |
List<NotificationChannel>
|
getNotificationChannels()
Returns all notification channels belonging to the calling package. |
NotificationManager.Policy
|
getNotificationPolicy()
Gets the current notification policy. |
boolean
|
isNotificationListenerAccessGranted(ComponentName listener)
Checks whether the user has approved a given
|
boolean
|
isNotificationPolicyAccessGranted()
Checks the ability to modify notification do not disturb policy for the calling package. |
void
|
notify(int id, Notification notification)
Post a notification to be shown in the status bar. |
void
|
notify(String tag, int id, Notification notification)
Post a notification to be shown in the status bar. |
boolean
|
removeAutomaticZenRule(String id)
Deletes the automatic zen rule with the given id. |
final
void
|
setInterruptionFilter(int interruptionFilter)
Sets the current notification interruption filter. |
void
|
setNotificationPolicy(NotificationManager.Policy policy)
Sets the current notification policy. |
boolean
|
updateAutomaticZenRule(String id, AutomaticZenRule automaticZenRule)
Updates the given zen rule. |
Inherited methods | |
---|---|
Constants
ACTION_APP_BLOCK_STATE_CHANGED
public static final String ACTION_APP_BLOCK_STATE_CHANGED
Intent that is broadcast when an application is blocked or unblocked.
This broadcast is only sent to the app whose block state has changed.
Input: nothing
Output: EXTRA_BLOCKED_STATE
Constant Value: "android.app.action.APP_BLOCK_STATE_CHANGED"
ACTION_INTERRUPTION_FILTER_CHANGED
public static final String ACTION_INTERRUPTION_FILTER_CHANGED
Intent that is broadcast when the state of getCurrentInterruptionFilter() changes. This broadcast is only sent to registered receivers.
Constant Value: "android.app.action.INTERRUPTION_FILTER_CHANGED"
ACTION_NOTIFICATION_CHANNEL_BLOCK_STATE_CHANGED
public static final String ACTION_NOTIFICATION_CHANNEL_BLOCK_STATE_CHANGED
Intent that is broadcast when a NotificationChannel
is blocked
(when NotificationChannel.getImportance()
is IMPORTANCE_NONE
) or unblocked
(when NotificationChannel.getImportance()
is anything other than
IMPORTANCE_NONE
).
This broadcast is only sent to the app that owns the channel that has changed.
Input: nothing
Output: EXTRA_NOTIFICATION_CHANNEL_ID
Output: EXTRA_BLOCKED_STATE
Constant Value: "android.app.action.NOTIFICATION_CHANNEL_BLOCK_STATE_CHANGED"
ACTION_NOTIFICATION_CHANNEL_GROUP_BLOCK_STATE_CHANGED
public static final String ACTION_NOTIFICATION_CHANNEL_GROUP_BLOCK_STATE_CHANGED
Intent that is broadcast when a NotificationChannelGroup
is
blocked
or unblocked.
This broadcast is only sent to the app that owns the channel group that has changed.
Input: nothing
Output: EXTRA_NOTIFICATION_CHANNEL_GROUP_ID
Output: EXTRA_BLOCKED_STATE
Constant Value: "android.app.action.NOTIFICATION_CHANNEL_GROUP_BLOCK_STATE_CHANGED"
ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED
public static final String ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED
Intent that is broadcast when the state of isNotificationPolicyAccessGranted()
changes.
This broadcast is only sent to registered receivers, and only to the apps that have changed.
Constant Value: "android.app.action.NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED"
ACTION_NOTIFICATION_POLICY_CHANGED
public static final String ACTION_NOTIFICATION_POLICY_CHANGED
Intent that is broadcast when the state of getNotificationPolicy() changes. This broadcast is only sent to registered receivers.
Constant Value: "android.app.action.NOTIFICATION_POLICY_CHANGED"
EXTRA_BLOCKED_STATE
public static final String EXTRA_BLOCKED_STATE
Extra for ACTION_NOTIFICATION_CHANNEL_BLOCK_STATE_CHANGED
or
ACTION_NOTIFICATION_CHANNEL_GROUP_BLOCK_STATE_CHANGED
containing the new blocked
state as a boolean.
The value will be true
if this channel or group is now blocked and false
if
this channel or group is now unblocked.
Constant Value: "android.app.extra.BLOCKED_STATE"
EXTRA_NOTIFICATION_CHANNEL_GROUP_ID
public static final String EXTRA_NOTIFICATION_CHANNEL_GROUP_ID
Extra for ACTION_NOTIFICATION_CHANNEL_GROUP_BLOCK_STATE_CHANGED
containing the id
of the NotificationChannelGroup
which has a new blocked state.
The value will be the NotificationChannelGroup.getId()
of the group.
Constant Value: "android.app.extra.NOTIFICATION_CHANNEL_GROUP_ID"
EXTRA_NOTIFICATION_CHANNEL_ID
public static final String EXTRA_NOTIFICATION_CHANNEL_ID
Extra for ACTION_NOTIFICATION_CHANNEL_BLOCK_STATE_CHANGED
containing the id of the
NotificationChannel
which has a new blocked state.
The value will be the NotificationChannel.getId()
of the channel.
Constant Value: "android.app.extra.NOTIFICATION_CHANNEL_ID"
IMPORTANCE_DEFAULT
public static final int IMPORTANCE_DEFAULT
Default notification importance: shows everywhere, makes noise, but does not visually intrude.
Constant Value: 3 (0x00000003)
IMPORTANCE_HIGH
public static final int IMPORTANCE_HIGH
Higher notification importance: shows everywhere, makes noise and peeks. May use full screen intents.
Constant Value: 4 (0x00000004)
IMPORTANCE_LOW
public static final int IMPORTANCE_LOW
Low notification importance: shows everywhere, but is not intrusive.
Constant Value: 2 (0x00000002)
IMPORTANCE_MAX
public static final int IMPORTANCE_MAX
Unused.
Constant Value: 5 (0x00000005)
IMPORTANCE_MIN
public static final int IMPORTANCE_MIN
Min notification importance: only shows in the shade, below the fold. This should
not be used with Service.startForeground
since a foreground service is supposed to be something the user cares about so it does
not make semantic sense to mark its notification as minimum importance. If you do this
as of Android version Build.VERSION_CODES.O
, the system will show
a higher-priority notification about your app running in the background.
Constant Value: 1 (0x00000001)
IMPORTANCE_NONE
public static final int IMPORTANCE_NONE
A notification with no importance: does not show in the shade.
Constant Value: 0 (0x00000000)
IMPORTANCE_UNSPECIFIED
public static final int IMPORTANCE_UNSPECIFIED
Value signifying that the user has not expressed an importance. This value is for persisting preferences, and should never be associated with an actual notification.
Constant Value: -1000 (0xfffffc18)
INTERRUPTION_FILTER_ALARMS
public static final int INTERRUPTION_FILTER_ALARMS
Interruption filter
constant -
Alarms only interruption filter - all notifications except those of category
Notification.CATEGORY_ALARM
are suppressed. Some audio streams are muted.
Constant Value: 4 (0x00000004)
INTERRUPTION_FILTER_ALL
public static final int INTERRUPTION_FILTER_ALL
Interruption filter
constant -
Normal interruption filter - no notifications are suppressed.
Constant Value: 1 (0x00000001)
INTERRUPTION_FILTER_NONE
public static final int INTERRUPTION_FILTER_NONE
Interruption filter
constant -
No interruptions filter - all notifications are suppressed and all audio streams (except
those used for phone calls) and vibrations are muted.
Constant Value: 3 (0x00000003)
INTERRUPTION_FILTER_PRIORITY
public static final int INTERRUPTION_FILTER_PRIORITY
Interruption filter
constant -
Priority interruption filter - all notifications are suppressed except those that match
the priority criteria. Some audio streams are muted. See
NotificationManager.Policy.priorityCallSenders
, NotificationManager.Policy.priorityCategories
,
NotificationManager.Policy.priorityMessageSenders
to define or query this criteria. Users can
additionally specify packages that can bypass this interruption filter.
Constant Value: 2 (0x00000002)
INTERRUPTION_FILTER_UNKNOWN
public static final int INTERRUPTION_FILTER_UNKNOWN
Interruption filter
constant - returned when
the value is unavailable for any reason.
Constant Value: 0 (0x00000000)
Public methods
addAutomaticZenRule
public String addAutomaticZenRule (AutomaticZenRule automaticZenRule)
Creates the given zen rule.
Throws a SecurityException if policy access is granted to this package.
See isNotificationPolicyAccessGranted()
.
Parameters | |
---|---|
automaticZenRule |
AutomaticZenRule : the rule to create. |
Returns | |
---|---|
String |
The id of the newly created rule; null if the rule could not be created. |
areNotificationsEnabled
public boolean areNotificationsEnabled ()
Returns whether notifications from the calling package are blocked.
Returns | |
---|---|
boolean |
cancel
public void cancel (int id)
Cancel a previously shown notification. If it's transient, the view will be hidden. If it's persistent, it will be removed from the status bar.
Parameters | |
---|---|
id |
int |
cancel
public void cancel (String tag, int id)
Cancel a previously shown notification. If it's transient, the view will be hidden. If it's persistent, it will be removed from the status bar.
Parameters | |
---|---|
tag |
String |
id |
int |
cancelAll
public void cancelAll ()
Cancel all previously shown notifications. See cancel(int)
for the
detailed behavior.
createNotificationChannel
public void createNotificationChannel (NotificationChannel channel)
Creates a notification channel that notifications can be posted to. This can also be used to restore a deleted channel and to update an existing channel's name, description, group, and/or importance.
The name and description should only be changed if the locale changes or in response to the user renaming this channel. For example, if a user has a channel named 'John Doe' that represents messages from a 'John Doe', and 'John Doe' changes his name to 'John Smith,' the channel can be renamed to match.
The importance of an existing channel will only be changed if the new importance is lower than the current value and the user has not altered any settings on this channel.
The group an existing channel will only be changed if the channel does not already belong to a group. All other fields are ignored for channels that already exist.
Parameters | |
---|---|
channel |
NotificationChannel : the channel to create. Note that the created channel may differ from this
value. If the provided channel is malformed, a RemoteException will be
thrown.
This value must never be |
createNotificationChannelGroup
public void createNotificationChannelGroup (NotificationChannelGroup group)
Creates a group container for NotificationChannel
objects.
This can be used to rename an existing group.
Group information is only used for presentation, not for behavior. Groups are optional for channels, and you can have a mix of channels that belong to groups and channels that do not.
For example, if your application supports multiple accounts, and those accounts will have similar channels, you can create a group for each account with account specific labels instead of appending account information to each channel's label.
Parameters | |
---|---|
group |
NotificationChannelGroup : The group to create
This value must never be |
createNotificationChannelGroups
public void createNotificationChannelGroups (List<NotificationChannelGroup> groups)
Creates multiple notification channel groups.
Parameters | |
---|---|
groups |
List : The list of groups to create
This value must never be |
createNotificationChannels
public void createNotificationChannels (List<NotificationChannel> channels)
Creates multiple notification channels that different notifications can be posted to. See
createNotificationChannel(NotificationChannel)
.
Parameters | |
---|---|
channels |
List : the list of channels to attempt to create.
This value must never be |
deleteNotificationChannel
public void deleteNotificationChannel (String channelId)
Deletes the given notification channel.
If you create
a new channel with
this same id, the deleted channel will be un-deleted with all of the same settings it
had before it was deleted.
Parameters | |
---|---|
channelId |
String |
deleteNotificationChannelGroup
public void deleteNotificationChannelGroup (String groupId)
Deletes the given notification channel group, and all notification channels that belong to it.
Parameters | |
---|---|
groupId |
String |
getActiveNotifications
public StatusBarNotification[] getActiveNotifications ()
Recover a list of active notifications: ones that have been posted by the calling app that
have not yet been dismissed by the user or cancel(String, int)
ed by the app.
Each notification is embedded in a StatusBarNotification
object, including the
original tag
and id
supplied to
notify()
(via getTag()
and
getId()
) as well as a copy of the original
Notification
object (via StatusBarNotification.getNotification()
).
Returns | |
---|---|
StatusBarNotification[] |
An array of StatusBarNotification .
|
getAutomaticZenRule
public AutomaticZenRule getAutomaticZenRule (String id)
Returns the AutomaticZenRule with the given id, if it exists and the caller has access.
Throws a SecurityException if policy access is granted to this package.
See isNotificationPolicyAccessGranted()
.
Returns null if there are no zen rules that match the given id, or if the calling package
doesn't own the matching rule. See AutomaticZenRule.getOwner()
.
Parameters | |
---|---|
id |
String |
Returns | |
---|---|
AutomaticZenRule |
getAutomaticZenRules
public Map<String, AutomaticZenRule> getAutomaticZenRules ()
Returns AutomaticZenRules owned by the caller.
Throws a SecurityException if policy access is granted to this package.
See isNotificationPolicyAccessGranted()
.
Returns | |
---|---|
Map<String, AutomaticZenRule> |
getCurrentInterruptionFilter
public final int getCurrentInterruptionFilter ()
Gets the current notification interruption filter.
The interruption filter defines which notifications are allowed to interrupt the user (e.g. via sound & vibration) and is applied globally.
Returns | |
---|---|
int |
Value is |
getImportance
public int getImportance ()
Returns the user specified importance for notifications from the calling package.
Returns | |
---|---|
int |
Value is |
getNotificationChannel
public NotificationChannel getNotificationChannel (String channelId)
Returns the notification channel settings for a given channel id. The channel must belong to your package, or it will not be returned.
Parameters | |
---|---|
channelId |
String |
Returns | |
---|---|
NotificationChannel |
getNotificationChannelGroup
public NotificationChannelGroup getNotificationChannelGroup (String channelGroupId)
Returns the notification channel group settings for a given channel group id. The channel group must belong to your package, or null will be returned.
Parameters | |
---|---|
channelGroupId |
String |
Returns | |
---|---|
NotificationChannelGroup |
getNotificationChannelGroups
public List<NotificationChannelGroup> getNotificationChannelGroups ()
Returns all notification channel groups belonging to the calling app.
Returns | |
---|---|
List<NotificationChannelGroup> |
getNotificationChannels
public List<NotificationChannel> getNotificationChannels ()
Returns all notification channels belonging to the calling package.
Returns | |
---|---|
List<NotificationChannel> |
getNotificationPolicy
public NotificationManager.Policy getNotificationPolicy ()
Gets the current notification policy.
Returns | |
---|---|
NotificationManager.Policy |
isNotificationListenerAccessGranted
public boolean isNotificationListenerAccessGranted (ComponentName listener)
Checks whether the user has approved a given
NotificationListenerService
.
The listener service must belong to the calling app.
Apps can request notification listener access by sending the user to the activity that
matches the system intent action
Settings.ACTION_NOTIFICATION_LISTENER_SETTINGS
.
Parameters | |
---|---|
listener |
ComponentName |
Returns | |
---|---|
boolean |
isNotificationPolicyAccessGranted
public boolean isNotificationPolicyAccessGranted ()
Checks the ability to modify notification do not disturb policy for the calling package.
Returns true if the calling package can modify notification policy.
Apps can request policy access by sending the user to the activity that matches the system
intent action Settings.ACTION_NOTIFICATION_POLICY_ACCESS_SETTINGS
.
Use ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED
to listen for
user grant or denial of this access.
Returns | |
---|---|
boolean |
notify
public void notify (int id, Notification notification)
Post a notification to be shown in the status bar. If a notification with the same id has already been posted by your application and has not yet been canceled, it will be replaced by the updated information.
Parameters | |
---|---|
id |
int : An identifier for this notification unique within your
application. |
notification |
Notification : A Notification object describing what to show the user. Must not
be null.
|
notify
public void notify (String tag, int id, Notification notification)
Post a notification to be shown in the status bar. If a notification with
the same tag and id has already been posted by your application and has not yet been
canceled, it will be replaced by the updated information.
All listener services
will
be granted Intent.FLAG_GRANT_READ_URI_PERMISSION
access to any uris
provided on this notification or the
NotificationChannel
this notification is posted to using
Context.grantUriPermission(String, Uri, int)
. Permission will be revoked when the
notification is canceled, or you can revoke permissions with
Context.revokeUriPermission(Uri, int)
.
Parameters | |
---|---|
tag |
String : A string identifier for this notification. May be null . |
id |
int : An identifier for this notification. The pair (tag, id) must be unique
within your application. |
notification |
Notification : A Notification object describing what to
show the user. Must not be null.
|
removeAutomaticZenRule
public boolean removeAutomaticZenRule (String id)
Deletes the automatic zen rule with the given id.
Throws a SecurityException if policy access is granted to this package.
See isNotificationPolicyAccessGranted()
.
Callers can only delete rules that they own. See AutomaticZenRule.getOwner()
.
Parameters | |
---|---|
id |
String : the id of the rule to delete. |
Returns | |
---|---|
boolean |
Whether the rule was successfully deleted. |
setInterruptionFilter
public final void setInterruptionFilter (int interruptionFilter)
Sets the current notification interruption filter.
The interruption filter defines which notifications are allowed to interrupt the user (e.g. via sound & vibration) and is applied globally.
Only available if policy access is granted to this package. See
isNotificationPolicyAccessGranted()
.
Parameters | |
---|---|
interruptionFilter |
int Value is |
setNotificationPolicy
public void setNotificationPolicy (NotificationManager.Policy policy)
Sets the current notification policy.
Only available if policy access is granted to this package.
See isNotificationPolicyAccessGranted()
.
Parameters | |
---|---|
policy |
NotificationManager.Policy : The new desired policy.
This value must never be |
updateAutomaticZenRule
public boolean updateAutomaticZenRule (String id, AutomaticZenRule automaticZenRule)
Updates the given zen rule.
Throws a SecurityException if policy access is granted to this package.
See isNotificationPolicyAccessGranted()
.
Callers can only update rules that they own. See AutomaticZenRule.getOwner()
.
Parameters | |
---|---|
id |
String : The id of the rule to update |
automaticZenRule |
AutomaticZenRule : the rule to update. |
Returns | |
---|---|
boolean |
Whether the rule was successfully updated. |
Interfaces
- ActionBar.OnMenuVisibilityListener
- ActionBar.OnNavigationListener
- ActionBar.TabListener
- AlarmManager.OnAlarmListener
- Application.ActivityLifecycleCallbacks
- Application.OnProvideAssistDataListener
- AppOpsManager.OnOpChangedListener
- DatePickerDialog.OnDateSetListener
- FragmentBreadCrumbs.OnBreadCrumbClickListener
- FragmentManager.BackStackEntry
- FragmentManager.OnBackStackChangedListener
- KeyguardManager.OnKeyguardExitResult
- LoaderManager.LoaderCallbacks
- Notification.Action.Extender
- Notification.Extender
- PendingIntent.OnFinished
- SearchManager.OnCancelListener
- SearchManager.OnDismissListener
- SharedElementCallback.OnSharedElementsReadyListener
- TimePickerDialog.OnTimeSetListener
- UiAutomation.AccessibilityEventFilter
- UiAutomation.OnAccessibilityEventListener
- WallpaperManager.OnColorsChangedListener
Classes
- ActionBar
- ActionBar.LayoutParams
- ActionBar.Tab
- Activity
- ActivityGroup
- ActivityManager
- ActivityManager.AppTask
- ActivityManager.MemoryInfo
- ActivityManager.ProcessErrorStateInfo
- ActivityManager.RecentTaskInfo
- ActivityManager.RunningAppProcessInfo
- ActivityManager.RunningServiceInfo
- ActivityManager.RunningTaskInfo
- ActivityManager.TaskDescription
- ActivityOptions
- AlarmManager
- AlarmManager.AlarmClockInfo
- AlertDialog
- AlertDialog.Builder
- AliasActivity
- AppComponentFactory
- Application
- ApplicationErrorReport
- ApplicationErrorReport.AnrInfo
- ApplicationErrorReport.BatteryInfo
- ApplicationErrorReport.CrashInfo
- ApplicationErrorReport.RunningServiceInfo
- AppOpsManager
- AutomaticZenRule
- DatePickerDialog
- Dialog
- DialogFragment
- DownloadManager
- DownloadManager.Query
- DownloadManager.Request
- ExpandableListActivity
- Fragment
- Fragment.SavedState
- FragmentBreadCrumbs
- FragmentContainer
- FragmentController
- FragmentHostCallback
- FragmentManager
- FragmentManager.FragmentLifecycleCallbacks
- FragmentManagerNonConfig
- FragmentTransaction
- Instrumentation
- Instrumentation.ActivityMonitor
- Instrumentation.ActivityResult
- IntentService
- KeyguardManager
- KeyguardManager.KeyguardDismissCallback
- KeyguardManager.KeyguardLock
- LauncherActivity
- LauncherActivity.IconResizer
- LauncherActivity.ListItem
- ListActivity
- ListFragment
- LoaderManager
- LocalActivityManager
- MediaRouteActionProvider
- MediaRouteButton
- NativeActivity
- Notification
- Notification.Action
- Notification.Action.Builder
- Notification.Action.WearableExtender
- Notification.BigPictureStyle
- Notification.BigTextStyle
- Notification.Builder
- Notification.CarExtender
- Notification.CarExtender.Builder
- Notification.CarExtender.UnreadConversation
- Notification.DecoratedCustomViewStyle
- Notification.DecoratedMediaCustomViewStyle
- Notification.InboxStyle
- Notification.MediaStyle
- Notification.MessagingStyle
- Notification.MessagingStyle.Message
- Notification.Style
- Notification.WearableExtender
- NotificationChannel
- NotificationChannelGroup
- NotificationManager
- NotificationManager.Policy
- PendingIntent
- Person
- Person.Builder
- PictureInPictureParams
- PictureInPictureParams.Builder
- Presentation
- ProgressDialog
- RemoteAction
- RemoteInput
- RemoteInput.Builder
- SearchableInfo
- SearchManager
- Service
- SharedElementCallback
- TabActivity
- TaskStackBuilder
- TimePickerDialog
- UiAutomation
- UiModeManager
- VoiceInteractor
- VoiceInteractor.AbortVoiceRequest
- VoiceInteractor.CommandRequest
- VoiceInteractor.CompleteVoiceRequest
- VoiceInteractor.ConfirmationRequest
- VoiceInteractor.PickOptionRequest
- VoiceInteractor.PickOptionRequest.Option
- VoiceInteractor.Prompt
- VoiceInteractor.Request
- WallpaperColors
- WallpaperInfo
- WallpaperManager
Exceptions