what is the easyest or native way to save a list of objects in a android application?
i need to save it and then load it when the app starts again.
would be nice
Let your items stored in the LinkedList
implement Parcelable so you can put them in your bundle
. The in onSaveInstance
you can put your objects in the bundle
using:
bundle.putParcelableArrayList ("key", list);
and in onRestoreInstanceState
of your Activity
get the data back from that bundle
using :
bundle.getParcelableArrayList();