Search code examples
androidimagecaptureimage-capture

Android image capture does not work


I have seen this question many times. In every single case I have tried the source code that someone answers with. It has never worked. All I need is to capture an image! I simply start an intent using ACTION_IMAGE_CAPTURE.

Issues I'm running into: - Image returned is NEVER full size, even when EXTRA_OUTPUT is specified - Camera application does not take photos if EXTRA_OUTPUT is specified - Resulting intent is null or the getData() method returns null - If I specify a Uri for the image in advance and then load the image later from that Uri the width/height are always -1.

I found an Android bug here: http://code.google.com/p/android/issues/detail?id=1480 That link basically says it's impossible and that I need to write my own activity. I have no clue how to do that though, does anyone have an example?

I've found numerous threads on this at stackoverflow.com. But no one has had a working solution yet. Has anyone found a way to make this work?


Solution

  • Certain devices simply don't work for this. It's a known issue. Those devices have moved on in age and I don't run into them anymore.