Java tutorial
//package com.java2s; import android.media.ExifInterface; public class Main { private static int exifToDegrees(int exifOrientation) { switch (exifOrientation) { case ExifInterface.ORIENTATION_ROTATE_90: return 90; case ExifInterface.ORIENTATION_ROTATE_180: return 180; case ExifInterface.ORIENTATION_ROTATE_270: return 270; default: return 0; } } }