forked from public/cordova-plugin-camera
6f4fef8479
getRotatedBitmap() can run out of memory if the image is very large: http://simonmacdonald.blogspot.ca/2012/07/change-to-camera-code-in-phonegap-190.html If this happens, simply do not rotate the image and return it unmodified. If you do not catch the OutOfMemoryError, the Android app crashes.