So I\'m trying to write some strings to SharedPreferences
in my android app. I first declare SharedPreferences and its original properties in my Applicati
I don't know the exact reason for your problem, but SharedPreferences
objects are intended to store small amounts of data anyway. If you need to store more data I would advise saving it to internal storage instead.
I have never had any problems storing and retrieving data to internal storage, whereas I run into bugs and irritating restrictions with SharedPreferences
(such as no putStringList
). For all but the simplest data I would avoid SharedPreferences
.