I am using sharedPreferences
for storing certain information from the user. I am not using any sort of database at all, and I also dont want to use any unless necessary. My activity displays a recyclerView
with 10-13 items (Dynamically added by user).
Currently I am using an arrayList to inflate data in the recyclerView
.
According to rules, It isn't possible to save an arrayList
in sharedPreferenes
(although there is a hack to do so, but its not recommended). So, instead, I want to save data in an array (two dimensional) and save it in sharedPreferences
and inflate the recyclerView
from the data in that array.
Is it even possible? Is it the right way for achieving what I want? I am new to this, please guide.