Can I put buttons in SimpleCursorAdapter listView?
<p>I want to put two buttons in listView.</p>

<pre><code>   public class Imenik extends ListActivity {

@Override
public long getSelectedItemId() {
 // TODO Auto-generated method stub
 return super.getSelectedItemId();
}

@Override
public int getSelectedItemPosition() {
 // TODO Auto-generated method stub
 return super.getSelectedItemPosition();
}
ListView lv;
Cursor Cursor1;

   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);

       //create a cursor to query the Contacts on the device to start populating a listview
    Cursor1 = getContentResolver().query(
      ContactsContract.CommonDataKinds.Phone.CONTENT_URI,
      null,
         null,
         null,
         null);
    startManagingCursor(Cursor1);

       String[] from = {
         ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME,
         ContactsContract.CommonDataKinds.Phone.NUMBER,
         ContactsContract.CommonDataKinds.Phone._ID}; // get the list items for the listadapter could be TITLE or URI

 int[] to = {android.R.id.text1,
    android.R.id.text2}; //sets the items from above string to listview

 //new listadapter, created to use android checked template
 SimpleCursorAdapter listadapter = new SimpleCursorAdapter(this, android.R.layout.simple_list_item_2, Cursor1, from, to );
 setListAdapter(listadapter);

 //adds listview so I can get data from it
 lv = getListView();
 lv.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);

}
</code></pre>

<p>}</p>

<p>with this code I get all contacts names and numbers and put in the list, but I want two buttons and in every row checkBox, and user can click on item - mark checkBox and click confirm button to get those values in an array.
Help, thank you, Wolf.</p>
