I was following these links to get the contacts in my application
How to call Android contacts list?
http://www.higherpass.com/Android/Tutorials/Working-Wit
In here you have got the cursor c
Cursor c = getContentResolver().query(Phones.CONTENT_URI, null, null,null, null);
to get the name
String name = c.getString(c.getColumnIndex(People.NAME));
to get the number
String number = c.getString(c.getColumnIndex(People.NUMBER));
You can iterate through the cursor and save them to a list. Create a checkbox list view and bind with that list.