Answer the question
In order to leave comments, you need to log in
Am I speaking correctly?
The essence of my misunderstanding lies in the method
@Override
public void onSaveInstanceState(Bundle outState) {
outState.putInt("seconds",seconds);
outState.putBoolean("running",running);
}
.....
Bundle bundle=new Bundle()
onSaveInstanceState(bundle);
.....
Answer the question
In order to leave comments, you need to log in
Yes, the method is called by the system, in much the same way as you described. The bundle can be serialized, and the system unloads it outside in case the process dies, in order to restore the state of the activity later.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question