Hi all,

When starting two activities of the same class within the same
instance using the flag REORDER_TO_FRONT, the new extra information of
the second call does not override the first starting activity. Is this
the desired behavior? How do retrieve the new extras?

For example:
In the StubActivity, I have this code: Intent i = new Intent(this,
A.class); i.putExtra("foobar",1); startActivity(i);

Activity A is displayed, and then this code is called upon a button
press: new Intent(this, A.class); i.putExtra("foobar",2);
i.setFlag(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); startActivity(i);

Activity A is re-displayed. Now check for the extras:  int foobar =
getIntent().getExtras().getInt("foobar")

Turns out that foobar = 1

-- 
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

Reply via email to