Answer the question
In order to leave comments, you need to log in
How to add an array of objects to sharedPreferences?
I have an array that consists of films - instances of the FilmItem class :
private ArrayList<FilmItem> filmItems = new ArrayList<>();
Answer the question
In order to leave comments, you need to log in
No way.
You can write your own implementation of converting your list to a string and back.
But SharedPreferences is not designed to store large amounts of data, use a database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question