• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to save/load an ArrayList of custom Objects to SharedPreference?

rigo95

Lurker
I'd like to save the arraylist that show the ranking of top players. ArrayList's name = Ranking. Class name = Player.
 
You could convert the ArrayList to an array when you need to save it to shared preferences, then save that array instead.

But if you're making leaderboards with top players, you might be interested in using Google Play Services for that.
 
Back
Top Bottom