On Mon, Jun 1, 2009 at 11:59 AM, guruk <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---