Effective Way To Get Contacts Info With Photo
I want to get some basic info of all contacts(I use api lvl 8). Currently i use this code snippet private List readContacts() { ContentResolver cr = get
Solution 1:
I changed to CusorAdapter
and use ContactsPhotoLoader from Contacts app and performance is improved.
Solution 2:
To get contact info you have to work with the Android Contact API. Also you have to keep in min that you have to handle this Api in a different way for android api below API 4 (1.6)and for the Android API 5 (2.0) and higher:
I will provide you some good links that will help you:
- Working With Android Contacts
- Handling Contact Photos (All API Levels)
- Using the Contact Picker API 2.0 and above
Retrieving Contact Information (Name, Number, and Profile Picture) API4 and lower
Thes also some SO thread similar to yours that must b helpful for you
get contact info from android contact picker
Post a Comment for "Effective Way To Get Contacts Info With Photo"