Android includes a launcher application (home screen) and support for third-party applications to replace the device launcher (home screen).
If device implementations allow third-party applications to replace the device home screen, they:
android.software.home_screen
.AdaptiveIconDrawable
object when the third party application use <adaptive-icon>
tag to provide their icon, and the PackageManager
methods to retrieve icons are called.If device implementations include a default launcher that supports in-app pinning of shortcuts and widgets, they:
true
for ShortcutManager.isRequestPinShortcutSupported()
and AppWidgetManager.html.isRequestPinAppWidgetSupported()
.ShortcutManager.requestPinShortcut()
]( https://developer.android.com/reference/android/content/pm/ShortcutManager.html#requestPinShortcut%28android.content.pm.ShortcutInfo, android.content.IntentSender%29) and the [AppWidgetManager.requestPinAddWidget()
]( https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#requestPinAppWidget%28android.content.ComponentName,android.os.Bundle, android.app.PendingIntent%29) API method.Conversely, if device implementations do not support in-app pinning, they:
false
for ShortcutManager.isRequestPinShortcutSupported()
and AppWidgetManager.html#isRequestPinAppWidgetSupported()
.If device implementations implement a default launcher that provides quick access to the additional shortcuts provided by third-party apps through the ShortcutManager API, they:
ShortcutManager
API class.If device implementations include a default launcher app that shows badges for the app icons, they:
NotificationChannel.setShowBadge()
API method. In other words, show a visual affordance associated with the app icon if the value is set as true
, and do not show any app icon badging scheme when all of the app's notification channels have set the value as false
.Notification.Builder.setNumber()
and the Notification.Builder.setBadgeIconType()
API.Android supports third-party app widgets by defining a component type and corresponding API and lifecycle that allows applications to expose an “AppWidget” to the end user.
If device implementations support third-party app widgets, they:
Android includes Notification
and NotificationManager
APIs that allow third-party app developers to notify users of notable events and attract users' attention using the hardware components (e.g. sound, vibration and light) and software features (e.g. notification shade, system bar) of the device.
If device implementations allow third party apps to notify users of notable events, they:
If device implementations support rich notifications, they:
Notification.Style
API class and its subclasses for the presented resource elements.Notification.Style
API class and its subclasses.If device impelementations support heads-up notifications: they:
Notification.Builder
API class when heads-up notifications are presented.Android includes the NotificationListenerService
APIs that allow apps (once explicitly enabled by the user) to receive a copy of all notifications as they are posted or updated.
Device implementations:
snoozeNotification()
]( https://developer.android.com/reference/android/service/notification/NotificationListenerService.html#snoozeNotification%28java.lang.String, long%29) API call, and dismiss the notification and make a callback after the snooze duration that is set in the API call.If device implementations have a user affordance to snooze notifications, they:
NotificationListenerService.getSnoozedNotifications()
.If device implementations support the DND feature, they:
suppressedVisualEffects
values passed along the [NotificationManager.Policy
](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#NotificationManager.Policy%28int, int, int, int%29) and if an app has set any of the SUPPRESSED_EFFECT_SCREEN_OFF or SUPPRESSED_EFFECT_SCREEN_ON flags, it SHOULD indicate to the user that the visual effects are suppressed in the DND settings menu.Android includes APIs that allow developers to incorporate search into their applications and expose their application’s data into the global system search. Generally speaking, this functionality consists of a single, system-wide user interface that allows users to enter queries, displays suggestions as users type, and displays results. The Android APIs allow developers to reuse this interface to provide search within their own apps and allow developers to supply results to the common global search user interface.
If device implementations implement the global search interface, they:
If no third-party applications are installed that make use of the global search:
Android also includes the Assist APIs to allow applications to elect how much information of the current context is shared with the assistant on the device.
If device implementations support the Assist action, they:
VoiceInteractionService
, or an activity handling the ACTION_ASSIST
intent.HOME
key as this designated interaction.Applications can use the Toast
API to display short non-modal strings to the end user that disappear after a brief period of time, and use the TYPE_APPLICATION_OVERLAY
window type API to display alert windows as an overlay over other apps.
If device implementations include a screen or video output, they:
[C-1-1] MUST provide a user affordance to block an app from displaying alert windows that use the TYPE_APPLICATION_OVERLAY
. The AOSP implementation meets this requirement by having controls in the notification shade.
[C-1-2] MUST honor the Toast API and display Toasts from applications to end users in some highly visible manner.
Android provides “themes” as a mechanism for applications to apply styles across an entire Activity or application.
Android includes a “Holo” and "Material" theme family as a set of defined styles for application developers to use if they want to match the Holo theme look and feel as defined by the Android SDK.
If device implementations include a screen or video output, they:
Android also includes a “Device Default” theme family as a set of defined styles for application developers to use if they want to match the look and feel of the device theme as defined by the device implementer.
Android supports a variant theme with translucent system bars, which allows application developers to fill the area behind the status and navigation bar with their app content. To enable a consistent developer experience in this configuration, it is important the status bar icon style is maintained across different device implementations.
If device implementations include a system status bar, they:
Android defines a component type and corresponding API and lifecycle that allows applications to expose one or more “Live Wallpapers” to the end user. Live wallpapers are animations, patterns, or similar images with limited input capabilities that display as a wallpaper, behind other applications.
Hardware is considered capable of reliably running live wallpapers if it can run all live wallpapers, with no limitations on functionality, at a reasonable frame rate with no adverse effects on other applications. If limitations in the hardware cause wallpapers and/or applications to crash, malfunction, consume excessive CPU or battery power, or run at unacceptably low frame rates, the hardware is considered incapable of running live wallpaper. As an example, some live wallpapers may use an OpenGL 2.0 or 3.x context to render their content. Live wallpaper will not run reliably on hardware that does not support multiple OpenGL contexts because the live wallpaper use of an OpenGL context may conflict with other applications that also use an OpenGL context.
If device implementations implement live wallpapers, they:
The upstream Android source code includes the overview screen, a system-level user interface for task switching and displaying recently accessed activities and tasks using a thumbnail image of the application’s graphical state at the moment the user last left the application.
Device implementations including the recents function navigation key as detailed in section 7.2.3 MAY alter the interface.
If device implementations including the recents function navigation key as detailed in section 7.2.3 alter the interface, they:
[C-1-1] MUST support at least up to 20 displayed activities.
SHOULD at least display the title of 4 activities at a time.
[C-1-2] MUST implement the screen pinning behavior and provide the user with a settings menu to toggle the feature.
SHOULD display highlight color, icon, screen title in recents.
SHOULD display a closing affordance ("x") but MAY delay this until user interacts with screens.
SHOULD implement a shortcut to switch easily to the previous activity
SHOULD trigger the fast-switch action between the two most recently used apps, when the recents function key is tapped twice.
SHOULD trigger the split-screen multiwindow-mode, if supported, when the recents functions key is long pressed.
MAY display affiliated recents as a group that moves together.
[SR] Device implementations are STRONGLY RECOMMENDED to use the upstream Android user interface (or a similar thumbnail-based interface) for the overview screen.
Android includes support for Input Management and support for third-party input method editors.
If device implementations allow users to use third-party input methods on the device, they:
If device implementations declare the android.software.autofill
feature flag, they:
AutofillService
and AutofillManager
APIs and honor the android.settings.REQUEST_SET_AUTOFILL_SERVICE
intent to show a default app settings menu to enable and disable autofill and change the default autofill service for the user.The Remote Control Client API is deprecated from Android 5.0 in favor of the Media Notification Template that allows media applications to integrate with playback controls that are displayed on the lock screen.
Android includes support for interactivescreensavers, previously referred to as Dreams. Screen savers allow users to interact with applications when a device connected to a power source is idle or docked in a desk dock. Android Watch devices MAY implement screen savers, but other types of device implementations SHOULD include support for screen savers and provide a settings option for users toconfigure screen savers in response to the android.settings.DREAM_SETTINGS
intent.
If device implementations include a hardware sensor (e.g. GPS) that is capable of providing the location coordinates:
Android includes support for the emoji characters defined in Unicode 10.0.
If device implementations include a screen or video output, they:
If device implementations include an IME, they:
If device implementations have the capability to display multiple activities at the same time, they:
AndroidManifest.xml
file, either explicitly via setting the android:resizeableActivity
attribute to true
or implicitly by having the targetSdkVersion > 24. Apps that explicitly set this attribute to false
in their manifest MUST NOT be launched in multi-window mode. Older apps with targetSdkVersion < 24 that did not set this android:resizeableActivity
attribute MAY be launched in multi-window mode, but the system MUST provide warning that the app may not work as expected in multi-window mode.xlarge
SHOULD support freeform mode.If device implementations support multi-window mode(s), and the split screen mode, they:
AndroidManifestLayout_minWidth
and AndroidManifestLayout_minHeight
values of the third-party launcher application and not override these values in the course of showing some content of the docked activity.If device implementations support multi-window mode(s) and Picture-in-Picture multi-window mode, they:
android:supportsPictureInPicture
* Targeting API level 25 or lower and declares both android:resizeableActivity
and android:supportsPictureInPicture
.setActions()
API.setAspectRatio()
API.KeyEvent.KEYCODE_WINDOW
to control the PIP window; if PIP mode is not implemented, the key MUST be available to the foreground activity.Configuration.uiMode
is configured as UI_MODE_TYPE_TELEVISION