How do I set the default state of a checkbox in ListView [Android]
<p>I am creating a list view as shown below. I want to set their states from a config file. How do I access the checkbox enabled property? I don't know how to get the checkbox object knowing only the text associated with it. I would like to loop through my configuration parameters and compare the config key to the items in the listview to obtain the index.</p>

<pre><code>    ArrayList&lt;String&gt; chansModem0 = getChannelList();
    lv_arr = (String[]) chansModem0.toArray(new String[0]);

    lvModem0 = (ListView) findViewById(R.id.listViewModem0);
    lvModem0.setAdapter(new ArrayAdapter&lt;String&gt;(MainActivity.this,android.R.layout.simple_list_item_multiple_choice, lv_arr));

    lvModem0.setItemsCanFocus(false);
    lvModem0.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
</code></pre>
