I want to use the device’s SD card to store application files, images, file cache, etc. on the device and use them in your application. I know that I can save them in internal memory using the Context.getFilesDir () / Context.openFileOutput methods, but I do not want my application to use internal memory to store this data.
So, is it possible to somehow create / save all the files depending on my application in a directory on the SD card, but still be able to tell the system that these files should be deleted when the application is deleted?
Or what recommendations in this case.
EDIT: I want to support 2.1 as well.
Thanks.
achie source share