Check out my answer (kaciula user) on this issue on stackoverflow.com: http://stackoverflow.com/questions/3042420/home-key-press-behaviour/4782423#4782423
I've filed a bug on b.android.com a couple of months ago but the bug report is still unnoticed. On Apr 9, 9:14 am, Tony Chuinard <[email protected]> wrote: > My application consists of a LoginActivity followed by a > BrowseActivity. When the user hits the Browse Activity, then hits the > Home button, then hits the application icon again, the LoginActivity > relaunches (but they're already logged in and in the browse activity > so they should be there). > > However, if I hit back, the BrowseActivity is still there, and the > LoginActivity is revisible when I hit back twice. It seems like the > LoginActivity gets pushed to the top of the stack and displayed every > time the application is launched, but the docs say that the last > activity from that 'task' will be launched (which is what I want - a > return to the BrowseActivity). > > I have a static LoginManager class, so I could check if that data is > null or not in LoginActivity onCreate() and do a finish() if > necessary, but I feel like that's a huge hack when my application > should be behaving like this already. -- 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

