Android: Getting image bitmap from third party app (e.g. WhatsApp) via content:// URI
问题 I am trying to get image from third party app (e.g WhatsApp) to my app (being tested on Marshmallow). When I do "share image" from WhatsApp and share it with my app, I get URI something like this: content://com.whatsapp.provider.media/item/61025 But in my app when I call getContentResolver().openInputStream(uri) or getContentResolver().openFileDescriptor(uri, "r") with above URI, it crashes with exception: java.lang.SecurityException: Permission Denial: opening provider com.whatsapp