Answer the question
In order to leave comments, you need to log in
How to work with Internal storage?
I have found many examples on how to get list of files and folders on sd card. And if the phone does not support flash drives, for example LG nexus 5, then how to get to the data stored on the phone? I can get to system folders and files using this construct:
File f = new File("/");
File[] files = f.listFiles();
Answer the question
In order to leave comments, you need to log in
in android there is a special folder in which user folders, a flash card or usb otg are mounted, its name is "mnt".
Look at what folders are there, in my emulator there is only "sdcard" (/mnt/sdcard/)
On my tablet I have a whole bunch of folders there: aces, secure, shell ... and sdcard, sdcard2, cd-rom, usbotg. This is in theory, but to work with it:
working with files
storing data
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question