Sunday, January 16, 2011

[android-developers] How to clear activity stack

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...?

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate