@@ -133,7 +133,25 @@ android.support.v4.app.NavUtils} class's static method,
133133navigateUpFromSameTask()}. When you call this method, it finishes the current activity and
134134starts (or resumes) the appropriate parent activity.
135135If the target parent activity is in the task's back stack, it is brought
136- forward as defined by {@link android.content.Intent#FLAG_ACTIVITY_CLEAR_TOP}.</p>
136+ forward. The way it is brought forward depends on whether the parent activity
137+ is able to handle an {@link
138+ android.app.Activity#onNewIntent onNewIntent()} call:</p>
139+
140+ <ul>
141+ <li>If the parent activity has launch mode <a
142+ href="{@docRoot}guide/topics/manifest/activity-element.html#lmode">{@code
143+ <singleTop>}</a>, or the <code>up</code> intent contains {@link
144+ android.content.Intent#FLAG_ACTIVITY_CLEAR_TOP}, the parent activity is
145+ brought to the top of the stack, and receives the intent through its
146+ {@link android.app.Activity#onNewIntent onNewIntent()} method.</li>
147+
148+ <li>If the parent activity has launch mode <a
149+ href="{@docRoot}guide/topics/manifest/activity-element.html#lmode">{@code
150+ <standard>}</a>, and the <code>up</code> intent does not contain
151+ {@link android.content.Intent#FLAG_ACTIVITY_CLEAR_TOP}, the parent activity
152+ is popped off the stack, and a new instance of that activity is created on
153+ top of the stack to receive the intent.</li>
154+ </ul>
137155
138156<p>For example:</p>
139157
@@ -157,7 +175,6 @@ activity was started in a task that belongs to a different app, then
157175navigating <em>Up</em> should create a new task that belongs to your app, which
158176requires that you create a new back stack.</p>
159177
160-
161178<h3 id="BuildBackStack">Navigate up with a new back stack</h3>
162179
163180<p>If your activity provides any <a
0 commit comments