I want to write file using uri.
OutputStream output = context.getContentResolver().openOutputStream(uri);
But it returns error.
java.io.FileNotFoundException: Missing file for 0E47-495B:Download/8324.jpg.xdec at /storage/external_SD/Download/8324.jpg.xdec
If I manually create empty file, OutputStream writes stuff. I need to create empty file programmatically with uri before stream opening.