Get file path from URI
Solution: public class RealPathUtil { @SuppressLint(“NewApi”) public static String getRealPathFromURI_API19(Context context, Uri uri){ String filePath = “”; String wholeID = DocumentsContract.getDocumentId(uri); // Split at colon, use second item in the array String id = wholeID.split(“:”)[1]; String[] column = { MediaStore.Images.Media.DATA }; // where id is equal to String sel = MediaStore.Images.Media._ID + “=?”; Cursor cursor … Read more