Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d042d65 authored by Sreevani Sreejith's avatar Sreevani Sreejith Committed by Android (Google) Code Review
Browse files

Merge "docs: Noted how apps behave differntly on devices without buttons." into mnc-docs

parents 9b3a7fa2 c6fabc0c
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -140,11 +140,16 @@ public void onCreate(Bundle savedInstanceState) {
<p>If the user does not interact with your app for a period of time while it is displayed, or if
the user covers the screen with their palm, the system switches the activity to ambient mode.
After the app switches to ambient mode, update the activity UI to a more basic layout to reduce
power consumption. You should use a black background with minimal white graphics and text. To
ease a user into the transition from interactive to ambient mode, try to maintain similar placement
of items on the screen. For more information on presenting content on an ambient screen, see the
power consumption. You should use a black background with minimal white graphics and text.
 To ease a user into the transition from interactive to ambient mode, try to maintain similar
 placement of items on the screen. For more information on presenting content on an ambient screen,
 see the
<a href="{@docRoot}design/wear/watchfaces.html#DisplayModes">Watch Faces for Android Wear</a>
design guide.
design guide.</p>
<p> Note that when your app runs on a device without a hardware button, palming the screen does not
switch an app into ambient mode. Rather, it causes the app to exit and the home screen to appear.
This behavior is intended to ensure that users can exit apps gracefully. However, these devices still
 go to ambient mode when the screen times out.
</p>

<p class="note"><b>Note:</b> In ambient mode, disable any interactive elements on the