I read this sentence, form a book "Files: Files internal to applications, which you can store on a removable storage medium" and I am confused, well I expect that "Files internal to applications" saved from my app that will be accessible only from my app. and that is true when you save them internally in the phone memory. But as the sentence says , you can save files to the sdcard also. And that is great but I think that everyone with 'external storage read' privilege set in the manifest will be able to read your file, so that doesn't make it internal to the app, it makes it publicly available to everyone.
My question is: Is there any way to store the files in the 'removable storage medium' -> sdcard and those files to stay available only to my app, others application to be prevented from reading the content ?
I know that if you put files in data/data//files these files are only available to the app with that package name
store the files in the 'removable storage medium' -> sdcard and those files to stay available only to my app
I don't think so, For sdcard
it is not possible.
The one way is store encrypted file
in sdcard and key
for it is you can put (keep) in your application's shared preference in private mode
and decrypt the file from your application when you want to read it. But I think it some ugly way.