[android-developers] Re: How to Clear Activity stack if using same activity multiple times?

2010-03-03 Thread A R
check setFlags in Intent class. Also read http://developer.android.com/guide/topics/fundamentals.html#acttask You can clear the stack upto a particular activity, if you want you can also set that your activity A is never kept in stack. HTH On Mar 4, 2:23 am, Sam samm...@gmail.com wrote: So I

[android-developers] Re: How to Clear Activity stack if using same activity multiple times?

2010-03-03 Thread Sam
Thanks for the info, but no of those intent combination I can seem to get to work. Basically if I have, A(1)-A(2)-A(3)-A(4) And when A(4) starts, I want A1-3 to be cleared from the stack. On Mar 3, 4:37 pm, A R amit.r...@gmail.com wrote: check setFlags in Intent class. Also

[android-developers] Re: How to Clear Activity stack if using same activity multiple times?

2010-03-03 Thread Bo
Did you try singleTop, singleTask or singleInstance? In your situation, you may need to maintain an intent stack all by yourself from A1 through A3, and handle the BACK key event respectively http://d.android.com/guide/topics/manifest/activity-element.html#lmode On Mar 3, 11:58 pm, Sam

[android-developers] Re: How to Clear Activity stack if using same activity multiple times?

2010-03-03 Thread Sam
I ended up following someones suggestion of using an Activity stack to handle things similiar to your intent stack to manage the 'Back' key event thanks. On Mar 3, 6:10 pm, Bo wang.b.fr...@gmail.com wrote: Did you try singleTop, singleTask or singleInstance? In your situation, you may need to