I’ve looked around for this but haven’t been able to find an answer – I’m relatively new to Java/Android so I apologize if it’s a basic question. I’m making an “edit profile” page in an Android application, and for one of the fields, I’ve created a checkbox dialog that opens on touching the field. Once the user has checked the box(es) and closed the dialog, I want the selections to show on the “edit profile” screen in a list form. For example, if the user checks “music” and “sports” in the list, I want those to show on the screen in the relevant field as “music, sports”. From looking around online, it seems that I might need to make an arraylist of the checked items and then convert them to strings…if so, how would I do this? And once I have the strings, how would I show them on the page? Thanks in advance for your help!
Share
You need to set the setOnCheckedChangeListener to your checkbox;