summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorFred Chung <fchung@google.com>2015-07-22 17:46:21 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-22 17:46:21 +0000
commitdb71828cb7bff983bd758e986b65731cb0a5b2f6 (patch)
treeddf334ddb4cc1b1c97bbfddcb9c954f36942d695 /docs
parentb73946715cb9e3ca7a2702407e34f885e92a5d9a (diff)
parent2c3b9fb86b9fb26b01fe5af2067f6513bf06acf3 (diff)
downloadframeworks_base-db71828cb7bff983bd758e986b65731cb0a5b2f6.zip
frameworks_base-db71828cb7bff983bd758e986b65731cb0a5b2f6.tar.gz
frameworks_base-db71828cb7bff983bd758e986b65731cb0a5b2f6.tar.bz2
am 2c3b9fb8: am 3ccbf3ba: Merge "Doc change: add note about not exiting on onPause()." into mnc-preview-docs
* commit '2c3b9fb86b9fb26b01fe5af2067f6513bf06acf3': Doc change: add note about not exiting on onPause().
Diffstat (limited to 'docs')
-rw-r--r--docs/html/design/wear/structure.jd3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/html/design/wear/structure.jd b/docs/html/design/wear/structure.jd
index c1d9ef9..768aa7f 100644
--- a/docs/html/design/wear/structure.jd
+++ b/docs/html/design/wear/structure.jd
@@ -166,8 +166,11 @@ href="#2DPicker">2D picker</a> is always available.</p>
<li>A map that asks the user to drop a pin should exit when the pin is dropped.</li>
<li>A short game can exit when the game finishes.</li>
<li>A drawing app can finish after 5 seconds of inactivity.</li>
+
+ <p class="note">An app generally should not exit in {@link android.app.Activity#onPause onPause()}. This is because events such as <a href="{@docRoot}guide/topics/ui/notifiers/notifications.html#Heads-up">Heads-up Notifications</a> can trigger the {@link android.app.Activity#onPause() onPause()} callback.</p>
</ul>
+
<h3>Manually exiting</h3>
<p>Even with logical exit points like these, some cases may exist where the user may want to