Android Camera, does not return to onActivityResult and resets calling activity

What is surprising is that the documented way of making this shit work does not work.

Scroll to Image Capture Intent,

// photoIDFile is type File
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photoIDFile)); // set the image file name

With this it just does not work. My Uri is correct, I have


But this gets the camera to return.

intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photoIDFile).toString()); // set the image file name

Now the camera resets my activity and I loose my activity, it goes back SHAMELESSLY.

I had to read through the Camera documentation on and read Building a Camera App section. This worked well.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s