I think the built-in activity stack and flags are quite good for
simple app logic, but if you have a complicated app, I'd suggest just
use startActivity() and finish() on all your activities and manage the
app flow yourself.  This is what I do and it gives you more control
over what's going on and the user won't get stuck in "back-button
hell" where, if you have your app coded incorrectly, they have to
press the back button multiple times to exit the app.  The drawback of
managing your own flow is that if you have activities that are
reachable in different ways, you will have to extra complexity of
having to pass in some kind of "next activity" flag via the intent
extras.

On Aug 15, 3:35 pm, dm1973 <[email protected]> wrote:
> FLAG_ACTIVITY_NO_HISTORY doesn't do what I want since I want to be
> able to switch back.
>
> Before I posted I tried the finish and it wasn't working quite right.
> After thinking about it a bit more, I released that my problem was
> that the activity I was calling finish on was a Tab Content (not the
> tab activity) which was causing some issues. Switching it around to
> call finish on the TabActivity seems to make everything work
> correctly.
>
> On Aug 15, 11:25 am, Francois Masurel <[email protected]> wrote:
>
>
>
> > Did you try the FLAG_ACTIVITY_NO_HISTORY intent flag ?
>
> > Here is a nice article about intent flags :
>
> >http://blog.akquinet.de/2010/04/15/android-activites-and-tasks-series...
>
> > Francois
>
> > On 15 août, 16:04, dm1973 <[email protected]> wrote:
>
> > > Right now I have 2 activities (A+B) and what I would like is for only
> > > 1 of them ever to be on the stack (If A shows B, I want the back
> > > button from B to go to the home screen not A). Is their a good way of
> > > doing this with activities Or should I change my app to be a bunch of
> > > views?- Hide quoted text -
>
> - Show quoted text -

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

Reply via email to