Lines Matching refs:instance
155 users to start a particular activity from more than one activity, a new instance of
156 that activity is created and pushed onto the stack (rather than bringing any previous instance of
159 using the <em>Back</em> button, each instance of the activity is revealed in the order they were
225 to bring forward an existing instance of it (instead of creating a new
226 instance on top of the back stack); or, you want your back stack to be cleared of all
275 <p>Launch modes allow you to define how a new instance of an activity is associated with the
314 <dd>Default. The system creates a new instance of the activity in the task from
316 each instance can belong to different tasks, and one task can have multiple instances.</dd>
318 <dd>If an instance of the activity already exists at the top of the current task, the system
319 routes the intent to that instance through a call to its {@link
320 android.app.Activity#onNewIntent onNewIntent()} method, rather than creating a new instance of the
321 activity. The activity can be instantiated multiple times, each instance can
323 activity at the top of the back stack is <em>not</em> an existing instance of the activity).
326 If D has the default {@code "standard"} launch mode, a new instance of the class is launched and the
327 stack becomes A-B-C-D-D. However, if D's launch mode is {@code "singleTop"}, the existing instance
331 instance of B is added to the stack, even if its launch mode is {@code "singleTop"}.</p>
332 <p class="note"><strong>Note:</strong> When a new instance of an activity is created,
334 instance of
343 However, if an instance of the activity already exists in a separate task, the system routes the
344 intent to the existing instance through a call to its {@link
345 android.app.Activity#onNewIntent onNewIntent()} method, rather than creating a new instance. Only
346 one instance of the activity can exist at a time.
351 the task holding the instance. The activity is always the single and only member of its task;
367 start an activity that specifies the {@code singleTask} launch mode, then if an instance of
407 the existing instance receives a call to {@link android.app.Activity#onNewIntent onNewIntent()},
408 instead of creating a new instance of the activity.
414 of launching a new instance of that activity, all of the other activities on top of it are
415 destroyed and this intent is delivered to the resumed instance of the activity (now on top),
424 "standard"}, it too is removed from the stack and a new instance is launched in its place to handle
425 the incoming intent. That's because a new instance is always created for a new intent when the