dimanche 25 octobre 2015

Displaying data from SQLite as a text in android

I have a table in SQLite with some data in it (e.g. NAME, AGE, GENDER).I want to display all the NAME's as a text in the button and also it should be able to automatically create buttons according to the number of items (NAME).

I want to do this is because I want to display the rest of the data using a different .xml file. For instance, the names are JONE, KEN, PEN so when the user clicks on JONE, it should display his name, age and gender only.

Please help...

Aucun commentaire:

Enregistrer un commentaire