How to save the value of onDestroy or onStop and return it again with the start of the program?

I wonder if I can save the value (in my program - the index), so I could return it when the program starts again (even if the program is destroyed), and the user can start from where it ends.

thank

+3
source share

Source: https://habr.com/ru/post/1744423/


All Articles