Skip to content

Commit db71828

Browse files
Fred ChungAndroid Git Automerger
authored andcommitted
am 2c3b9fb: am 3ccbf3b: 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().
2 parents b739467 + 2c3b9fb commit db71828

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/html/design/wear/structure.jd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,11 @@ href="#2DPicker">2D picker</a> is always available.</p>
166166
<li>A map that asks the user to drop a pin should exit when the pin is dropped.</li>
167167
<li>A short game can exit when the game finishes.</li>
168168
<li>A drawing app can finish after 5 seconds of inactivity.</li>
169+
170+
<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>
169171
</ul>
170172

173+
171174
<h3>Manually exiting</h3>
172175

173176
<p>Even with logical exit points like these, some cases may exist where the user may want to

0 commit comments

Comments
 (0)