Learn Android and interested the question: how to save several pairs of Int data in Kotlin when rebooting the application, the data on the number of correct answers of the category of a quiz /total answers. Only Shared Preferences and Room came to mind, but is there any other options?

New Library from Google -Datastore, there are still lists easier Room, like Paper -github.com/pilgrR/Paper

pavlofff2021-08-21 01:26:08

For "Multiple Int data" Shared Preferences is quite enough. Either just save the file. It was not washed away to drag dependencies due to a dozen byte of unstructured data.

Eugene Krivenja2021-08-20 10:50:30