I am making an app in which i am showing contacts to the user in a list view.I want to show the same list view to the user until and unless some changes are made to the contact list.The question arises here that when the activity is destroyed and till the user come back to the activity having the contact listview,Where shall i store the items of the listview as to show them to the user again?I think there are 3 options available:
1. Sqlite database
2. SdCard
3. Shared Preferences
I am not able to take the decision about which will be the best option for saving the items so as to retrieve them later.In my case the number of items in the list view may be upto 1000.Please help me.Thanks in advance.
You can go with SQLite database as it is protected , you can also use sdcard and any File format like property file , csv …etc to save your list detail , however sdcard media is shared with all application and accessible from user also .With so many contact I will not recommend shared preference as fetch detail and running query is not possible like in SQLite .