The question is this. Is there a method that can detect references to internal and external (if any) memory that will work on all devices. I need this to organize a scan of the phone and memory card for the presence of mp3 files (I do something like a player).

Environment.getExternalStorageDirectory () in most cases provides a link to internal memory.

  • You can try to see all the folders in / storage / emulated and mnt / there will be a lot of excess, but this can be filtered by size and write permissions. I think it would be safe to combine all these methods right away. - pavel

0