mardi 2 juin 2015

Displaying list of items from the database in android

I have two array list of animals and their sub categories.I have a button called animal list,when i click the animal list button the list of animals should be displayed in the next activity.When the list of animals are displayed and when when any animal is selected it should display its sub category list. I tried this without the use of database and it worked. But now i want to try it with the database. I want to store the values in the database and retrieve it when the animallist button is clicked.

It should also be possible to update the list by adding names of animals to the animals list later.

In this case should SQlite database should be used or the server database should be used. I am new to this android database.A complete explanation would really be helpful along with the code.

Thanks in advance

Aucun commentaire:

Enregistrer un commentaire