Getting the contact photo is such a big pain.
To understand what uri to use to get the info. It's better that you can view the database directly.
This is how:
Create an android emulator with SD card and save few contacts.
Use this command to dump the sql lite dataase.
Use the sqlite browser to view the sqlite database.
The last part of content provider URI is ID.
For example,
content://com.android.contacts/data/136
point to table data where id = 136.
http://sqlitebrowser.org/
--
Feng
Feng
没有评论:
发表评论