I created an Android
app
sometime ago. What the app
does is basically download a list of files (images and videos) and play them in a loop (like a Playlist
).
These files are saved in the default Android External Storage Directory
. I get it using this method:
Environment.getExternalStorageDirectory().getAbsolutePath();
Until now I never had storage problems but testing the app
on an old device (which has less storage capacity) I realised that I have a problem when the files (PlayList
) size is bigger than the device storage capacity.
I have thought (and research) about using an USB
stick, but I don't think that would be a good solution since I cannot know 100% sure the USB
path (it can be different for each device).
Any ideas about how handle this problem? Maybe another solution instead of using the USB
?
Here is what I have researched:
How to access USB Path in android?