mardi 17 mai 2016

Android - How to retrieve values from SQLite Database and post them as Checkboxes

I'm currently trying to retrieve values from my SQLite Database. Screenshot

And output the value of the subname and units on checkboxes. I'm pretty sure I just have to get the IDs so I could output the subname and units values as checkboxes, so subname + unit = 1 checkbox. Could you please provide a sample code or link me a tutorial on how to do this? I'm rather clueless on how to do this and really new to Android.

I'm also looking for a way on how to save their IDs afterwards and add them into another table, so when I retrieve the IDs it will output the values. If you know how to do this too please do help. Thank you! Your time is much appreciated

Aucun commentaire:

Enregistrer un commentaire