Android doesn't deliver correct PHOTO_URI <p>I am using a <code>QuickContactBadge</code>. Now I get this messages on a Sony Xperia P. I developed the app on CyanogenMod and eveything was fine.</p> <pre><code>Unable to open content: content://com.android.contacts/contacts/939/photo java.io.FileNotFoundException: content://com.android.contacts/contacts/939/photo </code></pre> <p>This is my code:</p> <pre><code>projection = new String[] { ContactsContract.CommonDataKinds.Phone._ID, ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, ContactsContract.CommonDataKinds.Phone.NUMBER, ContactsContract.CommonDataKinds.Phone.PHOTO_URI }; contactCursor = getContentResolver().query( ContactsContract.CommonDataKinds.Phone.CONTENT_URI, projection, null, null, null); ... thumbnail = contactCursor.getString(contactCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.PHOTO_URI)); ... quickContactBadge.setImageURI(Uri.parse(ThumbnailString)); </code></pre> <p>My suggestion was that the Sony ROM doesn't deliver an valid PHOTO_URI but it looks legit.</p>