How can I import contacts from phone book to my android appplication with a cheackbox on each row. Further I want to move those contacts to databse... As in this screen shot..can any one help?
Asked
Active
Viewed 1,246 times
2
-
1**screen shot is as below...** Where it is? – Vikas Patidar Apr 20 '11 at 06:45
-
hi vikas i for got to add here is the link for screen shot http://i.imgur.com/1Lg8B.jpg – Vijaya Apr 20 '11 at 06:59
-
vikas i followed ur blog and also posted this query in ur blog – Vijaya Apr 20 '11 at 07:01
-
Yes you can use a Custom `SimpleCursorAdapter` and Check [this](http://stackoverflow.com/questions/4803756/android-cursoradapter-listview-and-checkbox/4804366#4804366) answer to handle the CheckBox events. – Vikas Patidar Apr 20 '11 at 07:14
-
but first i have to get entire phonebook with checkboxes eachrow.i am able to get all cotacts from phone book using ContactsContract.Contacts...i want to place checkboxes each row ...can u post the entire code – Vijaya Apr 20 '11 at 07:48
-
Did you solve the problem vijaya? – Abhi Jan 09 '12 at 06:32
1 Answers
0
Use a TableView and an adapter to retrieve the contacts and then implement each row in your table. See the code below.
http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/

Yekmer Simsek
- 4,102
- 3
- 21
- 19