I have problem
filePath is "/storage/external_SD/#/#abc/zyx.jpg"
Uri.parse("/storage/external_SD/#/#abc/zyx.jpg").getPath return only "/storage/external_SD".
So FileNoeFoundException occured
Your code is File file = new File(Uri.parse(filePath).getPath)
I think variable filePath is already FILEPATH.
I thnkis Uri.parse.. is unnecessary code
please check this code
thank you
I have problem filePath is "/storage/external_SD/#/#abc/zyx.jpg" Uri.parse("/storage/external_SD/#/#abc/zyx.jpg").getPath return only "/storage/external_SD". So FileNoeFoundException occured Your code is File file = new File(Uri.parse(filePath).getPath) I think variable filePath is already FILEPATH. I thnkis Uri.parse.. is unnecessary code please check this code thank you