i want to use a list which will store objects of some type (lets say for simplicity – books) so i can show them in a listview object.
im kinda new to this, so i ask for the help of more advanced and experienced users about the following debates –
-
which one to use? linkedlist is something im familiar with. however, how do i make the app maintain the list? should i save the details of each object in a XML? if i do that, isnt it just better to use Arraylist? (please exclude in your answer things related to proccessing time).
-
if not via xml – how do i ‘store’ a list for later use even when the app is shut down and later on activated?
Thanks!
You must storage your data into SQLite. Android provides a very easy way. Look at this tutorial: http://www.vogella.de/articles/AndroidSQLite/article.html