lundi 18 mai 2015

use FLAG_ACTIVITY_REORDER_TO_FRONT only if an activity exists with the same extras

Is there a way to use FLAG_ACTIVITY_REORDER_TO_FRONT to get an activity to be reordered on front only if it has the same extras ?

For example, let's say I have the current stack : A - B(e=1) - C.

I'd like the following behaviour:

  • If I launch a B(e=2) intent, the result stack would be A - B(e=1) - C - B(e=2)
  • If I launch a B(e=1) intent, the result stack would be A - C - B(e=1)

Aucun commentaire:

Enregistrer un commentaire