Back

GetMediaFile

Hello World

Returns a file path to a unique media file matching the format “/storage/emulated/0/Pictures/[folder]/YYYYMMDD_hhmmSSsss[ext]”.

app.GetMediaFile( folder, ext ) → String: path to file or folder ( “/absolute/...” or “relative/...” )

The folder for this file will be created automatically.

See Also: CreateImage, CreateCameraView

Example - Get Media File

function OnStart()
{
    var path = app.GetMediaFile("Hello World", ".png");
    app.Alert( path );
}
    Copy     Copy All       Run      
String
String: app name