I have some Activities, let's say Activity A, B and C.
In the Activity A I call the B through a Menu with an onOptionsItemSelected
:
Intent main = new Intent (this, MainActivity.class);
this.startActivity(main);
Now, when I'm in the B activity, I can call the A one back in the same way (with Intent and startactivity): how can i handle it to call the OnResume
or the OnRestart
method of A instead of the OnCreate
one?
I'm logging it and anytime I move from an activity to another one, it always call the OnCreate
method: what can I do?