i have created one listview.now i want to show data(contact no.,name) from contactlist of android(Phonebook) on my listview. i got it for android 1.5 but i want to do it for android2.1updated.
How to do it?can any one guide me or give some sample code? Thanks in advance---
This will help you getting contacts.
For getting phone number of a particular contact,you need to use:
If you have achieved it in 1.5 then there can be a small difference of URI. You should go for updated/changed URI of Contacts in 2.1. For further understanding here is a sample code for 2.1updated:
so above is just a sample code that I used for my task. You can get what you need by making changes accordingly. I hope it helps.