vendredi 24 juillet 2015

How to create a set checkboxes using database / sqlite? Android

Hi I'm trying to create a checkbox using my local database. In my database a have a specific table for which has an _id and card_name as a column. I wanted to create a checkbox which will display my card_name and when checked the value of my _id will be passed to another activity when I clicked a button. I've searched on how to do this but I only sees from checkbox it will save a data to the database is there any way to do this? or if this is not possible how can I set a value for each checkbox? i tried using android:defaultValue in my xml but i think it doesn't work. Thank you for the help.




Aucun commentaire:

Enregistrer un commentaire