Android Utililty Methods ExifInterface Get

List of utility methods to do ExifInterface Get

Description

The list of methods to do ExifInterface Get are organized into topic(s).

Method

intgetExifDegree(String filepath)
get Exif Degree
int degree = 0;
ExifInterface exif;
try {
    exif = new ExifInterface(filepath);
} catch (IOException e) {
    e.printStackTrace();
    return 0;
if (exif != null) {
    int orientation = exif.getAttributeInt(
            ExifInterface.TAG_ORIENTATION, -1);
    if (orientation != -1) {
        switch (orientation) {
        case ExifInterface.ORIENTATION_ROTATE_90:
            degree = 90;
            break;
        case ExifInterface.ORIENTATION_ROTATE_180:
            degree = 180;
            break;
        case ExifInterface.ORIENTATION_ROTATE_270:
            degree = 270;
            break;
return degree;
intgetExifOrientation(String filepath)
get Exif Orientation
int degree = 0;
ExifInterface exif = null;
try {
    exif = new ExifInterface(filepath);
} catch (IOException ex) {
if (exif != null) {
    int orientation = exif.getAttributeInt(
...