How do I save my savedInstanceState data?

How do I save my savedInstanceState data?
Answer
This method is called after onStart().
onSaveInstanceState(savedInstanceState); // Restore UI state using savedInstanceState. Using this way you can save all the states and other data variables that could be lost on screen rotation or when the current activity goes into the background.
 

Tìm kiếm

Back
Top