I’ve 2 Activity A & B.. A starts B when i return from B to A onRestart() is called, then onStart() method is called.
My question is all the views in Activity A redraws when onRestart() -> onStart()?
I’ve 2 Activity A & B.. A starts B when i return from B
Share
onResume(.)is called ifActivityA is not yet destroyed(variables are retained, no redraw).
onCreate(.)>onStart(.)>onResume(.)iscalled(variables are lost, redraw).
onRestart(.)>onStart(.)>onResume(.)iscalled(variables are not lost, redraw)
Thus you’ll only loose variables if the
Activityis cleared from memory.