How can I set listener to my checkboxes in the listview? I have class that extends ListActivity, so I dont have listView in my xml file.. here's my code:

public class Notes extends ListActivity {

String notes[];
private boolean delete_check = false;
//private Context mContext;

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out);
ActionBar actionBar = getActionBar();
// actionBar.setDisplayShowTitleEnabled(false);
actionBar.setTitle("  Your Notes:");
String[] filenames = getApplicationContext().fileList();
notes = new String[filenames.length];

for (int i = 0; i < filenames.length; i++) {
notes = filenames;
Log.d("Filename", filenames);
}

setListAdapter(new ArrayAdapter<String>(Notes.this,
R.layout.notes_layout_normal, R.id.label, notes));

getWindow().getDecorView().setBackgroundColor(Color.rgb(249, 253, 183));
}

protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);



Intent i = new Intent("android.intent.action.NEWNOTE");
i.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
i.putExtra("NASLOV", notes[position]);
startActivityForResult(i, 1);
}

public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.action_buttons, menu);
return super.onCreateOptionsMenu(menu);
}

public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.deleteNote:
if(delete_check==false){
setListAdapter(new ArrayAdapter<String>(Notes.this,
R.layout.notes_layout_selection, R.id.check, notes));
delete_check=true;
}
else{
setListAdapter(new ArrayAdapter<String>(Notes.this,
R.layout.notes_layout_normal, R.id.label, notes));

delete_check = false;
}

return super.onOptionsItemSelected(item);
case R.id.addNewNote:
Intent i = new Intent("android.intent.action.NEWNOTE");
i.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(i);
return super.onOptionsItemSelected(item);
default:
return super.onOptionsItemSelected(item);
}
}

public void onSaveInstanceState(Bundle saveState) {
super.onSaveInstanceState(saveState);

}

}

And here's the xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="35dp" >

    <CheckBox
        android:id="@+id/check"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textStyle="bold"
        android:textSize="15sp" >
    </CheckBox>

</LinearLayout>