listview and checkboxes?
<p>i have list view and the user enters all the infomration and then each item in the list view gets a checkbox and the checkbox turns on and off alarm and also checkbox true or false for each item is saved to the database i looked around on forums and tryed stuff out but cant get notting working could someone help me out some way here is some code ?</p>

<pre><code>public class mainpage extends Holdsstuff 
{
     private Calendar AutoSilentCalendar;   
     private DatabaseStore databaseHelper;
     private static final int ACTIVITY_CREATE=0;
     private static final int ACTIVITY_EDIT=1;
     CheckBox ch;

     protected void onCreate(Bundle savedInstanceState) 
     {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main_activity);

         databaseHelper = new DatabaseStore(this);
         databaseHelper.open();
         ListViewData();

         registerForContextMenu(getListView());
     }

     private void ListViewData() {
         Cursor MainPageCursor = databaseHelper.fetchAllReminders();
         startManagingCursor(MainPageCursor);      

         String[] empty = new String[] { DatabaseStore.MUTE_TITLE,  DatabaseStore.START_KEY_TIME, DatabaseStore.END_KEY_TIME, DatabaseStore.COVERT_DAYS }; 

         int[] notempty = new int[]{R.id.text1,R.id.text2, R.id.text4,  R.id.text5};
         SimpleCursorAdapter mainPageList = new SimpleCursorAdapter(this, R.layout.editinfo_row, MainPageCursor, empty, notempty);
         setListAdapter(mainPageList); 
     }
</code></pre>

<p>xml file(editinfo_row.xml)</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;

 &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/widget38"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_marginLeft="10dip"
        android:layout_marginRight="10dip"
        android:orientation="vertical" &gt;

        &lt;TextView
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/text1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:textSize="25sp" /&gt;

        &lt;LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal" &gt;


            &lt;TextView
                android:id="@+id/text2"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="30sp" /&gt;
    &lt;TextView
                android:id="@+id/text3"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text=" - "
                android:textSize="30sp" /&gt;
            &lt;TextView
                android:id="@+id/text4"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="30sp" /&gt;

             &lt;CheckBox
                  android:text=""
        android:id="@+id/list_checkbox"
      android:layout_marginLeft="20dp"
       android:layout_width="wrap_content"
                android:layout_height="wrap_content"
        android:checked="false"
        android:focusable="false"
android:focusableInTouchMode="false"
        /&gt;

&lt;/LinearLayout&gt;



  &lt;LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal" &gt;
            &lt;TextView
                android:id="@+id/text5"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="15sp" /&gt;

        &lt;/LinearLayout&gt;

    &lt;/LinearLayout&gt;
</code></pre>
