Sapient
Company
Programming
It is possibel that two activites are in the same process and one activity is starting the other activity.
What is the correct order of operations that occur when activity A start Activity B?
1. Activity A's onPause() method executes
2. Activity B's onCreate(), onStart() and onResume() methods execute in squence (Activity B now has user focus)
3. Then, if Activity A is no longer visible on screen, its onStop() method executes.
1) 2-->1-->3
2) 1-->2-->3
3) 1-->3-->2
4) 2-->3-->1
Read Solution (Total 1)
-
- 1-->2-->3 is the correct order
- 7 years agoHelpfull: Yes(0) No(0)
Sapient Other Question