Created
October 7, 2014 09:35
-
-
Save 29jitender/813107319641e7c99ddb to your computer and use it in GitHub Desktop.
get contact image from contact id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Uri getContactPhotoUri(long contactId) { | |
Uri photoUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, | |
contactId); | |
photoUri = Uri.withAppendedPath(photoUri, | |
Contacts.Photo.CONTENT_DIRECTORY); | |
return photoUri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment