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:

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:
  1. internal-path is an opaque id that is only valid for the life time of the application.
  2. filename is the actual name of the file as seen by the end user.
  3. extension is the file extension (jpg, mp4)