I have following code:
Uri u_img = Uri.parse(android.provider.MediaStore.Images.Media.insertImage(
getContentResolver(),f.getAbsolutePath(), null, null));
but android.provider.MediaStore.Images.Media.insertImage
returns null on Galaxy S6 6.0.1.
I have tried following possible solutions but no luck:
- Checking permission of Writing to External Storage -> OK
- Try to do the checking of directory is there or not by f.exists() and it returns true
What could be another reason?