When I open an action, I know that I can initialize the material in the onCreate function.
But what is the behavior of the OnResume and onRestart functions? When are these features called?
In particular: I initialize the local member variable in the onCreate function auiqring reference to the global object. Now, when the user is interrupted, for example, on a call, activity can be closed. Later, when the user returns to my opinion, what is the status of an already initialized variable? Should I reinitialize everything in the onResume / onRestart functions? So what will be the functional difference opposite to onCreate?
source share