Android - How can i create a "black list" for the files of my application -
in app have many files (images , audio files). there way can "mark" files cannot read other app music player audio , gallery images? question is: can create sort of "black list" prevents other app see files?
edit
as recommended me, try making ".nomedia" file folder contains files in way:
file no_media_file = new file (my_path, "/.nomedia"); try { no_media_file.createnewfile(); } catch (ioexception e) { e.printstacktrace(); }
the file ".nomedia" created correctly (i verified using "es file explorer") if open "play music" app can still play audio file... doing wrong?
i solved problem inserting files in folder named this: ".my_folder"
, it's worked!
Comments
Post a Comment