summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorFred Chung <fchung@google.com>2015-07-21 22:06:13 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-21 22:06:15 +0000
commit3ccbf3bad50c47409de9570c422756f9e3fa518a (patch)
treea10fbcbac6ff26f0a8e52fe8b1b2b1561e42304b /docs
parenta758133566e030275988fb3bf253a432e6803d8f (diff)
parent0d0c4b6804c88bb27cffb0305f03c40234f926de (diff)
downloadframeworks_base-3ccbf3bad50c47409de9570c422756f9e3fa518a.zip
frameworks_base-3ccbf3bad50c47409de9570c422756f9e3fa518a.tar.gz
frameworks_base-3ccbf3bad50c47409de9570c422756f9e3fa518a.tar.bz2
Merge "Doc change: add note about not exiting on onPause()." into mnc-preview-docs
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