1
2
3
|
Intent intent =
new
Intent(
this
, B.
class
);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
|
1
|
intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
1
2
3
|
Intent intent =
new
Intent(
this
, MainActivity.
class
);
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(intent);
|
1
2
3
|
Intent intent =
new
Intent(ReorderFour.
this
, ReorderTwo.
class
);
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(intent);
|