lundi 2 mars 2015

how to query database from array adapter list and display results in another activity

I'm looking for a general idea if someone have a code or something that can lead me on the right path I'll be grateful. That's the database:



_ID _NAME _COUNTRY _X
1 A USA
2 B USA
3 C France


I have an ArrayAdapter that displays a countries in a listview. After clicking on the item I'd like database to display items only from this country.


So user starts app and sees:



Italy
France
USA


After he clicks on USA I want to display in the next activity only items A and B without C. Thanks.


Aucun commentaire:

Enregistrer un commentaire