If I launch Activity2 from Activity1 by this way: startActivity(Activity2); what executes first: onStop() (Activity1) or onStart() (Activity2) ?
Do they work simultaneously or in turn? If one after another, what is first?
So in general : what is the activity’s state order when first activity starts second, if this order exists?
The key is understanding how activity is started. When you publish Intent in startActivity() method you just ask system to start this activity. Next system try to start Activity2 and sends message to Activity1. Order is undetermined and can be different in different situations.
Looks like my anwer was wrong for situation when both activities works within this same process (app)
As pointed Daniil Popov: https://developer.android.com/guide/components/activities/activity-lifecycle.html (Coordinating activities section)