Handling files on Android devices
How to manipulate file resources with GMA?
File management APIs on Androidâ„¢ devices
The following APIs can be used to handle files in Android/GMA apps:
mobile.choosePhoto,mobile.takePhoto,mobile.chooseVideo,mobile.takeVideofront calls;standard.openFile,standard.openFiles,standard.launchurlfront calls;fgl_getfile()built-in function;os.Pathclass;
The paths returned by front calls such as standard.openFile are aligned with
the scoped storage (see https://source.android.com/devices/storage/scoped)
File path format
For an app running on an Android device, filenames returned by front calls such as standard.openFile use the
following format:
genero-content:/internal-path?name=filename.extension&ext=extension
where:
- internal-path is an opaque id that is only valid for the life time of the application.
- filename is the actual name of the file as seen by the end user.
- extension is the file extension (jpg, mp4)