Debian Codegraph @

tools/build-tool/data/android/integrated-services/read_external_storage/README.adoc

raw
1 ## read_extenal_storage
2
3 This service asks user for permissions to read Android _"external storage"_.
4
5 _"External storage"_ includes normal files, which can be accessed in _Castle Game Engine_ and Pascal through the standard file API (like `TFileStream` from `Classes` unit or `Download` from `CastleDownload` unit). In case of _Castle Game Engine_, files can be accessed using the URLs with `file` protocol (like `file:///storage/emulated/0/my_file.txt`) or an explicit Unix file path (like `/storage/emulated/0/my_file.txt`).
6
7 These are e.g. files in your internal memory and SD cards.
8
9 Note: This service is not necessary to read files from https://castle-engine.io/data[data directory] on Android. The application data, pakaged in APK, is installed to a special application-specific directory on Android, to which your app always has access.
10
11 Note: This service is not necessary if you also use `write_external_storage`. If an application has write access, it implicitly also has read access (as documented on https://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGE ).