There is the following question. My activity (let's call it A) causes another activity (let's call it B). Activity B performs various actions and at one point the finish () method is called, i.e. Activity B closes and the activity A opens again. In this connection, the question arose: what method in this case is caused by activity A? onCreate () again or onRestart () and onStart ()?
- 2onPause () -> onStop () and then again onStart () -> onResume () - UjinUkr
- 2in general, it would be possible to redefine these methods, call Log.d ("dev", "onStart ()") in them, and directly on a real example to see what is being called and what is not) - YungBlade
- @UjinUkr, looked at the debugger - you are right. Write as an answer? - Sergei Mikhailovskii
|
1 answer
onPause () -> onStop () and then again onStart () -> onResume (). 
More information can be found here .
|