Answer the question
In order to leave comments, you need to log in
The question is savedInstanceState how to save the array?
Good afternoon!
I programmatically assign text to buttons.
All assignments are stored in an array.
After turning the screen, the inscriptions disappear accordingly.
How can I save my array using savedInstanceState?
savedInstanceState.putStringArray ? Does anyone have an example?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
you have an array, store it separately, after the flip it is called by the oncreateview machine, there you check if the array is empty, if not, create all the buttons and fill it with data from the array.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question