I'm working on an application that uses the camera to take pictures of
objects. I have built a small frame to set my phone on while I move
things in and out to take pictures of. The problem is that
occasionally the pictures will come out upside down.
I have been experimenting with the camera and I have discovered I can
take a picture holding the camera upside down and the picture will be
flipped over as though the camera was right side up - Android is smart
enough to know the orientation of my device and flips the picture over
for me. This is how I am opening the intent to take a picture:
Intent imageCaptureIntent = new
Intent(MediaStore.ACTION_IMAGE_CAPTURE);
imageCaptureIntent.putExtra(MediaStore.EXTRA_SCREEN_ORIENTATION,
ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT,
fileUri);
startActivityForResult(imageCaptureIntent,
IMAGE_CAPTURE_INTENT);
The problem happens when the device is lying on it's back suspended by
my frame... it will take a picture and render it upside down - but
only occasionally I can take 5-6 pictures just fine and then get one
upside down...
Is there some way I can force the camera to not rotate the image?
Similar to forcing the image to have a SCREEN_ORIENTATION_PORTRAIT ?
I'm working on a Nexus One but I believe that the ION has the same
behavior...
Thanks in advance!
-Aaron
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe, reply using "remove me" as the subject.