On Jan 16, 8:06 pm, Subba <raochoud...@gmail.com> wrote:
> My application has two activities A, B.
>
> Initially application launches with A activity(root activity), and
> then it launches the B activity and finishes A activity.  Now B
> activity on the foreground.
> User pressed Home Button on B activity it launches HOME Screen, user
> launches the application it launches A activity(intentional) and on
> the background B activity still there.
> When user presses back (finish() method call) on A activity it goes to
> B activity.
> Is there any way to clear the activity stack trace when application
> launches again i want to clear the B activity from activity stack if
> it exists.
>
> Any suggestions please...?

http://developer.android.com/guide/topics/fundamentals.html#clearstack

Memorize this document or revisit it regularly.

Doug

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to