Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
See https://developer.android.com/reference/android/provider/ContactsContract.Contacts.Photo There's PHOTO_URI in ContactsContract.class. Fetch it following way. String photo = c.getString(c.getC...
Answer
#1: Initial revision
See https://developer.android.com/reference/android/provider/ContactsContract.Contacts.Photo There's PHOTO_URI in ContactsContract.class. Fetch it following way. ```java String photo = c.getString(c.getColumnIndex(Phone.PHOTO_URI)); ``` It's URI not URL. [Don't confuse with URL](https://software.codidact.com/posts/281517). Now, you got URI. Then you have to find Bitmap for that picture. ```java bitmap = MediaStore.Images.Media.getBitmap(context.getContentResolver(), Uri.parse(photo)); ``` Now you can show the picture using `setImageBitmap` ```java imgPic.setImageBitmap(bitmap); ```