Using the Android SDK i'm not seeing any EXIF in my JPEG's
android
Solution
So after some more research I found that I was loosing the EXIF information when i used the following code to save the image data to the SD card.
BitmapFactory.Options options=new BitmapFactory.Options();
options.inSampleSize = 0;
Bitmap myImage = BitmapFactory.decodeByteArray(imageData, 0, imageData.length);
FullFileName = sdImageMainDirectory.toString() + "/DCIM/Camera/" + getDateTime() + ".jpg";
fileOutputStream = new FileOutputStream(FullFileName);
BufferedOutputStream bos = new BufferedOutputStream(fileOutputStream);
myImage.compress(CompressFormat.JPEG, quality, bos);
bos.flush();
bos.close();
I changed the above code to simply be this, and now all the EXIF data from the camera is present.
FileOutputStream file = new FileOutputStream(FileName);
file.write(imageData);
Problem
I'm using the `android.hardware.Camera` class to take pictures and i'm finding that no exif data is stored in the images at all. If i use the camera application on my DROID all of the exif data is being saved. I've tried setting the rotation with Set() and SetRotation() to see if I can get some exif data to show up. When I view the images on my laptop with an exif reader it tells me the image has NO exif data. I've seen some similar posts, but I have not found a solution to this. Has anyone seen this issue with other phones? I'm using the Android 2.0.1 SDK