Skip to content Skip to sidebar Skip to footer

Camera Picture Uri Null Path

In my app, I let the user the chance to get a photo and set it as profile pic. There are 2 ways for getting the photo, from the gallery, and directly taken with the camera. I have

Solution 1:

So I know that it must be something with the path.

That's because it's not a filesystem path. A Uri is not a file, and while you are handling that properly elsewhere, you are not doing so here.

You need to switch to EXIF logic that can handle an InputStream, such as this code culled from the AOSP Mms app.

Post a Comment for "Camera Picture Uri Null Path"