How to access files in the phone or SD card

Hi guys, I need a little help in understanding android file system.

Now on Windows, for example, we create files using paths such as "c:/mytextfile.txt"or "c:/folder/mytextfile.txt". Now how can I access files and folders in android, I mean, what is the path.

Does the phone support file browser support instead of relying on third-party applications?

+5
source share
1 answer

Android does not have its own file browser, but there are many third-party ones (Astro comes to mind). The Android file system is Linux; the path separator is /, and FS grows from a single root called /. So you have application packages in / data / apps, etc. If the phone is not locked ("rooted"), you will not be able to see the entire file system - permissions interfere. This applies to all Android applications, they are isolated by the sandbox, that is, they do not get access to the entire file system. There are API calls to get the path to the current application sandbox.

+9
source

All Articles