Android includes a launcher application (home screen) and support for third-party applications to replace the device launcher (home screen).
Device implementations that allow third-party applications to replace the device home screen:
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.Device implementations are STRONGLY RECOMMENDED to implement a default launcher that supports in-app pinning of shortcuts and widgets. If they do, 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()
.Device implementations are STRONGLY RECOMMENDED to implement a default launcher that provides quick access to the additional shortcuts provided by third-party apps through the ShortcutManager API. If they do, they:
ShortcutManager
API class.If device implementations are a handheld, 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.If device implementations preloads a default launcher that support their own proprietary badging scheme for any apps, they:
NotificationChannel.setShowBadge()
API method if it is false
.Widgets are optional for all Android device implementations, but SHOULD be supported on Android Handheld devices.
Android defines a component type and corresponding API and lifecycle that allows applications to expose an “AppWidget” to the end user, a feature that is STRONGLY RECOMMENDED to be supported on Handheld Device implementations. Device implementations that support embedding widgets on the home screen MUST meet the following requirements and declare support for platform feature android.software.app_widgets.
Android includes APIs that allow 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.
Device implementations MUST provide the full behavior of the NotificationChannel API documented in the SDK. Device implementions MUST provide a user affordance to block a certain third-party app's notification channels and modify the importance level of a certain third-party app's notification channels. Device implementations MUST also provide a user affordance to display deleted notification channels.
Android Handheld and Watch devices MUST allow third-party apps to notify users of notable events through the Notification
and NotificationManager
API classes.
Android Handheld device implementations:
Android Automotive implementations MAY manage the visibility and timing of the notifications to mitigate driver distraction, but MUST display notifications that use the Notification.CarExtender
API when requested by third-party applications.
If device implementations allow third party apps to notify users of notable events, they:
Notification.Style
API class and it's subclasses, and for the presented resource elements it MUST use the exact resources as provided through this API classes.Notification.Builder
API class.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()
.Device implementations that support the DND feature MUST meet the following requirements:
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.
Android device implementations SHOULD include global search, a single, shared, system-wide search user interface capable of real-time suggestions in response to user input. Device implementations SHOULD implement the APIs that allow developers to reuse this user interface to provide search within their own applications. Device implementations that implement the global search interface MUST implement the APIs that allow third-party applications to add suggestions to the search box when it is run in global search mode. If no third-party applications are installed that make use of this functionality, the default behavior SHOULD be to display web search engine results and suggestions.
Android device implementations SHOULD, and Android Automotive implementations MUST, implement an assistant on the device to handle the Assist action.
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. Device implementations supporting the Assist action MUST indicate clearly to the end user when the context is shared by displaying a white light around the edges of the screen. To ensure clear visibility to the end user, the indication MUST meet or exceed the duration and brightness of the Android Open Source Project implementation.
This indication MAY be disabled by default for preinstalled apps using the Assist and VoiceInteractionService API, if all following requirements are met:
The preinstalled app MUST request the context to be shared only when the user invoked the app by one of the following means, and the app is running in the foreground:
The device implementation MUST provide an affordance to enable the indication, less than two navigations away from (the default voice input and assistant app settings menu) section 3.2.3.5.
The designated interaction to launch the assist app as described in section 7.2.3 MUST launch the user-selected assist app, in other words the app that implements a VoiceInteractionService, or an activity handling the ACTION_ASSIST intent. It is STRONGLY RECOMMENDED to use long press on 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 a device includes a screen or video output, it:
[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” 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. Device implementations MUST NOT alter any of the Holo theme attributes exposed to applications.
Android includes a “Material” theme family as a set of defined styles for application developers to use if they want to match the design theme’s look and feel across the wide variety of different Android device types. Device implementations MUST support the “Material” theme family and MUST NOT alter any of the Material theme attributes or their assets exposed to applications.
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. Device implementations MAY modify the Device Default theme attributes exposed to applications.
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. Therefore, Android device implementations MUST use white for system status icons (such as signal strength and battery level) and notifications issued by the system, unless the icon is indicating a problematic status or an app requests a light status bar using the SYSTEM_UI_FLAG_LIGHT_STATUS_BAR flag. When an app requests a light status bar, Android device implementations MUST change the color of the system status icons to black (for details, refer to R.style).
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.
Device implementations capable of running live wallpapers reliably as described above SHOULD implement live wallpapers, and when implemented MUST report the platform feature flag android.software.live_wallpaper.
As the Recent function navigation key is OPTIONAL, the requirement to implement the overview screen is OPTIONAL for Android Watch and Android Automotive implementations, and RECOMMENDED for Android Television devices. There SHOULD still be a method to switch between activities on Android Automotive implementations.
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 but MUST meet the following requirements:
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. Device implementations that allow users to use third-party input methods on the device MUST declare the platform feature android.software.input_methods and support IME APIs as defined in the Android SDK documentation.
Device implementations that declare the android.software.input_methods feature MUST provide a user-accessible mechanism to add and configure third-party input methods. Device implementations MUST display the settings interface in response to the android.settings.INPUT_METHOD_SETTINGS intent.
Device implementations that declare the android.software.autofill
feature flag MUST fully implement the 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. Device implementations that support a lock screen, unless an Android Automotive or Watch implementation, MUST display the Lock screen Notifications including the Media Notification Template.
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.
When a device has a hardware sensor (e.g. GPS) that is capable of providing the location coordinates, location modes MUST be displayed in the Location menu within Settings.
Android includes support for the emoji characters defined in Unicode 10.0. All device implementations MUST be capable of rendering these emoji characters in color glyph and when Android device implementations include an IME, it SHOULD provide an input method to the user for these emoji characters.
Android handheld devices SHOULD support the skin tone and diverse family emojis as specified in the Unicode Technical Report #51.
Android includes support for Roboto 2 font with different weights—sans-serif-thin, sans-serif-light, sans-serif-medium, sans-serif-black, sans-serif-condensed, sans-serif-condensed-light—which MUST all be included for the languages available on the device and full Unicode 7.0 coverage of Latin, Greek, and Cyrillic, including the Latin Extended A, B, C, and D ranges, and all glyphs in the currency symbols block of Unicode 7.0.
A device implementation MAY choose not to implement any multi-window modes, but if it has the capability to display multiple activities at the same time it MUST implement such multi-window mode(s) in accordance with the application behaviors and APIs described in the Android SDK multi-window mode support documentation and meet the following requirements:
Non Picture-in-Picture multi-window mode
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.AndroidManifestLayout_minWidth
and AndroidManifestLayout_minHeight
values of the 3rd-party launcher application and not override these values in the course of showing some content of the docked activity.xlarge
SHOULD support freeform mode.Picture-in-Picture multi-window mode
android:supportsPictureInPicture
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.