davemorris
New Member
Hi,
I'm facing two problems with my Motorola Milestone's Camera.
I'm facing two problems with my Motorola Milestone's Camera.
- I'm using the Android Native Camera app to take a picture and save it to the sdcard.
Code:Intent cameraintent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File file = new File(Environment.getExternalStorageDirectory(), "test.jpg"); cameraintent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file)); outputFileUri = Uri.fromFile(file); startActivityForResult(cameraintent, CAMERA_PIC_REQUEST);
Now after saving the image, it seems to lose all EXIF information. When I try to retrieve the exif info like this:
Code:ExifInterface exif = new ExifInterface(Environment.getExternalStorageDirectory()+"/test.jpg"); String exifOrientation = exif.getAttribute(ExifInterface.TAG_ORIENTATION);
It returns exifOrientation = 0 (i.e ORIENTATION_UNDEFINED ), whereas it should return 6.
However, this code works perfectly well on all other android phones.
- I changed the picture resolution (camera settings) from "Small" to "WideScreen". But it does not seem to have any effect on the pic taken by the camera app. It's resolution is still 320x240.