I am trying to fix a problem after the new feature added in Android file system but I get this error:
android.os.FileUriExposedException: file:///storage/emu
add a code in
onCreate(Budle savedInstancesState){ if (Build.VERSION.SDK_INT >= 24) { try { Method m = StrictMode.class.getMethod("disableDeathOnFileUriExposure"); m.invoke(null); } catch (Exception e) { e.printStackTrace(); } }