Is using Shared Preferences for storing user data reliable?
-
28-09-2019 - |
Question
Will the data still be there after the user restarts his / her phone or changes SIM / battery?
Solution
Yes. The data is persistent. Unless the user 'restores it to factory defaults'
OTHER TIPS
SharedPreferences are stored in the phone's internal memory, not the SD card.
They won't be erased by a reboot/battery change either.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow