vendredi 18 décembre 2015

What should I choose to store my data. Database or XML?

I am making an app in which there will be a search option to perform search for a particular item. Number of items will be around 45-50 . I want to display the queried item in a different activity. I just wanted to know will it be good if I make 45-50 activities and store the item details in their respective XML files or I should use SQLite database ? Also, I wanted to know if SQLite database provide any such option to simply fetch the item detail and present the detail in a separate activity with just one pre-defined XML layout, as this will greatly ease out my work ?

I am new to android and I've not worked with SQLite before.

Aucun commentaire:

Enregistrer un commentaire