mardi 24 février 2015

listview with names => another activity passing the name and querying the database with it to get the query result

I have difficulties with sqlite. I need help some more experienced, because I'm just getting into android.


I have a listview with countries and images. I'm using Arraylist to display countries as a String. One of the questions is if it's better maybe to get them from database instead of a list of Strings?


Moving on every onItemClick should pass the name and query the database with it to display results (all items in this country) in another activity. Here the question is if it's better to do the query in the first activity with the selected name and display results in another activity or use intent with passing the name and query it after moving to new activity?


After displaying the results in the listview of items using another onItemClick I'd like to move to detailed view of the item.


Thanks in advance. If you would like to see it on code I'll provide it.


Aucun commentaire:

Enregistrer un commentaire