:
parentActivity ( , parentActivity , , , setIntent):
currentActivityIntent.putExtra("random-unique-key-for-each-activity",
random-unique-key-for-each-activity);
, , :
myKeyIntentMap.put(random-unique-key-for-each-activity, currentActivityIntent);
, "":
{
String parentKey = currentActivity.parentActivity.getIntent.getStringExtra("random-unique-key-for-each-activity");
Intent intentToLaunch = (Intent)myKeyIntentMap.get(parentKey);
intentToLaunch.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_SINGLE_TOP );
startActivity(intentToLaunch);
}
, , - A-someAct1-someAct2-B, , A, " ", .
P.S. , .