I need the checkboxes in my listview checked by default so that it returns true for the value of isChecked()
.
I am using the Simple Multiple choice list item layout provided by the sdk supplied in android.R.layout.simple_list_item_multiple_choice
I have set the ListView adapter like this:
adapter = new ArrayAdapter(this,android.R.layout.simple_list_item_multiple_choice, list);
setListAdapter(adapter);