A
A
Andrey Frolov2015-03-14 21:26:40
Android
Andrey Frolov, 2015-03-14 21:26:40

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();

And I can’t figure out how to get to user files.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Sae, 2015-03-15
@inham

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

M
Max, 2015-03-14
@mbelskiy

If the phone does not support sd cards, this does not mean that it does not have external storage.
And what you call user data is not clear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question