My requirement is my app will download an image and a video (15MB) to the external storage of the app. And I doesn't want gallery or any other app apart from mine access these files. I am thinking of below two solutions please suggest your opinions and suggest is there any other way.
IF you make it hidden folder like shown bellow apps like Gallery will ignore these folders. That's the only way that I think this can be done. The reason that this will work fine is because Android is multi user Linux
system.
File folder = new File(Environment.getExternalStorageDirectory(), ".hiddenFolder");
folder.mkdir();
Hope that helps!