Поскольку я поддерживаю мое приложение в версии Kitkat, теперь в этом способе получения файла из галереи было другое.
Я предпочел, чтобы это Галерея Android на KitKat возвращает различные Uri для Intent.ACTION_GET_CONTENT для извлечения файла из галереи и успешно работает, но мне нужен Абсолютный путь к этому файлу, я я получаю
content://com.android.providers.media.documents/document/image:2505
Для версии 19 ниже мы использовали uri different, используя то, что я получаю путь таким образом
Cursor cursor = this.getContentResolver().query(originalUri, projection, null, null, null);
int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
cursor.moveToFirst();
String fpath = cursor.getString(column_index);
но в 19-й версии это даст мне нулевое значение, как получить абсолютный путь к файлу изображения, который был выбран пользователем.
Спасибо