Which of the following is a valid sequence of invokes to Activity lifecycle methods? (Select Two)
Which of the following is a valid sequence of invokes to Activity lifecycle methods? (Select Two)
The valid sequences of invokes to Activity lifecycle methods are onCreate > onStart > onResume > onPause > onStop > onRestart and onCreate > onStart > onResume > onPause > onStop > onDestroy. In the Android Activity lifecycle, after onStop, an activity can either transition to onRestart before moving back to onStart, or it can go to onDestroy if it is being finished.
B. onCreate > onStart > onResume > onPause> onStop>onRestart C. onCreate > onStart > onResume > onPause> onStop>onDestroy