Exactly, the flag tells the system to finish all the activity that are above your "home screen activity" in the stack
On 9 Jun., 22:04, MrSnowflake <[email protected]> wrote: > Does your sollution pop all other activities from the activityQueue? > > On Jun 9, 3:29 pm, "Bullo#88" <[email protected]> wrote: > > > I found the solution: the FLAG_ACTIVITY_CLEAR_TOP flag has to be > > added to the intent > > E.g. > > Intent intent = new Intent(this, "your home > > screen class"); > > intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); > > startActivity(intent); > > > On 9 Jun., 14:44, "Bullo#88" <[email protected]> wrote: > > > > Any suggestions please? > > > > On 9 Jun., 09:24, "Bullo#88" <[email protected]> wrote: > > > > > My application is composed by several activities, I would like to give > > > > the user the option to go back to the home screen of my application by > > > > pressing a button on the screen. > > > > At the same time I can't call the finish() function on activities > > > > beetween the home screen and the currently visible activity because by > > > > pressing the back button the user wil go back only one step and see > > > > the previous activity. > > > > > Any idea on how to achieve this? > > > > Is it possible to access the activity stack and e.g. close all the > > > > activities it contains except the first one? > > > > > Thanks in advance, > > > > Danilo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

