From here I know a way to write a file and be accessible to another application and another intention, but now that Context.MODE_WORLD_READABLE is deprecated, how can I safely do this?
FileOutputStream out = myActivity.openFileOutput(fileTo, Context.MODE_WORLD_READABLE);
Ok more info:
I use this:
intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(uri, "video/*");
And uri will be the one that I will write in the SD card. And the video will appear from the application, so the problem is that if it is not allowed now, how can I write a file and view it.
source share