I load an image into a bitmap
and need to know the orientation of the taken picture (from camera) to show it correctly. The way to use the following code is working nice (since API Level 5), but what to do if android:minSdkVersion="4"
? Is there another way?
ExifInterface exif = new ExifInterface(SourceFileName); //Since API Level 5
String exifOrientation = exif.getAttribute(ExifInterface.TAG_ORIENTATION);
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…