- Just
onResume(.)is called ifActivityA is not yet destroyed
(variables are retained, no redraw). - If it’s destroyed
onCreate(.)>onStart(.)>onResume(.)is
called(variables are lost, redraw). - If it’s stopped
onRestart(.)>onStart(.)>onResume(.)is
called(variables are not lost, redraw)
Thus you’ll only loose variables if the Activity is cleared from memory.
6
solved onRestart -> onStart() what happen between this 2 state [closed]