I implemented this workaround to fix issue when you target api 24 >= thanks to https://stackoverflow.com/users/4963858/hqzxzwb
https://stackoverflow.com/a/40674771
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build());
in Application.onCreate(). In this way the VM ignores the file URI exposure.
I implemented this workaround to fix issue when you target api 24 >= thanks to https://stackoverflow.com/users/4963858/hqzxzwb
https://stackoverflow.com/a/40674771
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build());in Application.onCreate(). In this way the VM ignores the file URI exposure.