how to check/uncheck checkbox in listview dynamically in android?
<p>this is the code i am using to dynamically load data from database, but i am not getting how to check or uncheck checkbox dynamically? this is the code i am using.</p>

<pre><code>String[] from = new String[]{"ToDisplay","MblNo", "_id"};

        // and an array of the fields we want to bind those fields to (in this case just tvViewRow)
        int[] to = new int[]{R.id.tvViewRow};


        // Now create a simple cursor adapter and set it to display
        SimpleCursorAdapter cursor = new SimpleCursorAdapter(this, R.layout.white_row, coloursCursor, from, to);

        setListAdapter(cursor);
        Cursor curs = DisplayWhiteAddress();
        curs.moveToFirst();
        int i=0;
        while(!curs.isAfterLast()){
            String s=""+curs.getString(2);

            myArrayList.add(i, s);
            s=""+curs.getString(0);

            myNumberList.add(i, s);
            ListIndices.add(i,Integer.parseInt(""+curs.getString(0)));

            curs.moveToNext();
            i++;
        }
</code></pre>
