I'm getting a bit confused from this description:
The caller may pass an extra EXTRA_OUTPUT to control where this image will be written. If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap object in the extra field. This is useful for applications that only need a small image. If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri value of EXTRA_OUTPUT.
With NO EXTRA_OUTPUT
, it will return a "small sized image"?
With EXTRA_OUTPUT
, it will return a full sized image?
"Is returned as a Bitmap object in the extra field"...
On my onActivityResult
, I was just using Intent data
as the actual data. Am I supposed to be using data.getExtra
or something?
Here is an expansion of my comment. This snippet of code worked well for me in giving me the pixel data - getting grayscale data and imageview is in my post here
Hope this helps
In the case you provide an Uri:
and then you retrieve it with (after the tests on requestCode and resultCode):
In the other case:
and your retrieve it with: