Common prototype for using MediaStore.ACTION_IMAGE_CAPTURE across all phones & Android versions. Please test on more phones and contribute back to this project.
Basically a combination of the following:
- http://developer.android.com/guide/topics/media/camera.html
- http://developer.android.com/guide/topics/data/data-storage.html#SavingSharedFiles
- http://developer.android.com/training/displaying-bitmaps/load-bitmap.html
- http://stackoverflow.com/questions/1910608/android-action-image-capture-intent
- https://code.google.com/p/android/issues/detail?id=1480
Tested on:
- Nexus 4
- Samsung Galaxy Nexus
- Samsung Galaxy S2
- Samsung Galaxy S3 (takes camera picture fine, doesn't display for some reason)
- HTC Vivid
- Motorola Droid X2
Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt
Copyright 2013, Kevin Schultz