[android-developers] Re: Finish all previous Activities?
Did it worked? not for me :( On Tuesday, June 2, 2009 1:20:43 AM UTC+5:30, guruk wrote: !!! thanks !!! looks great chris -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Finish all previous Activities?
You could launch the main activity again with the 'clear top' flag, which has the effect of clearing all activities on top of it. On Sat, May 30, 2009 at 11:31 AM, guruk ilovesi...@gmail.com wrote: Hi, is it possible with one call to finish all previous Activities. (like: this.finish(all) :) I have a main activity, calling a preferences and there is a switchuser point that switch the user and call the main activity again. But than i dont need that the user can go back, step by step, It would be just fine i could say kill all previous activites in the moment the user klick switch user any idea? greets chris --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Finish all previous Activities?
Hi Marco, that sounds interesting. how to set the clear top flag? right i call the main acticity again with: Intent mainIntent = new Intent(listdatabases.this, datepicker.class); mainIntent.putExtra(db_table, databasestr ); listdatabases.this.startActivity(mainIntent); listdatabases.this.finish() And you mean its like . a (datepicker.class) starts b, b starts c, c starts a with clear top and when I press back it will just exit to the homescreen, right? that would be great! chris --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Finish all previous Activities?
On Mon, Jun 1, 2009 at 11:59 AM, guruk ilovesi...@gmail.com wrote: Hi Marco, that sounds interesting. how to set the clear top flag? right i call the main acticity again with: Intent mainIntent = new Intent(listdatabases.this, datepicker.class); add: mainIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); mainIntent.putExtra(db_table, databasestr ); listdatabases.this.startActivity(mainIntent); listdatabases.this.finish() And you mean its like . a (datepicker.class) starts b, b starts c, c starts a with clear top and when I press back it will just exit to the homescreen, right? that would be great! If a was launched from the home screen, then yes. See the description at http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Finish all previous Activities?
!!! thanks !!! looks great chris --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---