How to put selected items from a CheckBox Dialog in a list?

view story

http://stackoverflow.com – I want to know how to store a selected item from a dialog witch check boxes in a list? As you can see bellow I have the dialog up and running but I cant figure out how to store the checked items in a LIST. I am not sure which is better a list or ArrayList so if you have any suggestions about that too please tell me. final String[] typeOfTransport = { "Bus", "Pedestrian", "Car", "Tram", "Bicycle", }; final boolean[] itemsChecked = new boolean[typeOfTransport.length]; AlertDialog.Builder dialogBui (HowTos)