I have an activity which starts various activities for result codes and on getting results in onActivityResult
method it starts appropriate activity based on result code.
onSaveInstanceState
is not getting called in Activity which started for result.
For example Navigation Activity starts Activity A as :
Intent intent = new Intent(this, A.class);
startActivityForResult(intent, Constants.REQUEST_CODE);
Then A finishes by setting result code so App will redirect to Navigation activity again and onActivityResult
method will called.
So my question is: Why Activity A's onSaveInstanceState
is not getting called at finish and navigation back to Navigation Activity ?