Android Utililty Methods Image Orientation Get

List of utility methods to do Image Orientation Get

Description

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

Method

intgetOrientation(Context context, Uri imageUri)
Gets the orientation.
String[] filePathColumn = { MediaColumns.DATA };
Cursor cursor = context.getContentResolver().query(imageUri,
        filePathColumn, null, null, null);
cursor.moveToFirst();
int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
String filePath = cursor.getString(columnIndex);
cursor.close();
return getCameraPhotoOrientation(context, imageUri, filePath);
...
StringgetOriginalFilePath(Context context, Uri imageUri)
Gets the original file path.
if (imageUri.getScheme().equals("file")) {
    return imageUri.getPath();
String[] filePathColumn = { MediaColumns.DATA, MediaColumns.DATA };
Cursor cursor = context.getContentResolver().query(imageUri,
        filePathColumn, null, null, null);
cursor.moveToFirst();
int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
...