Back

GetAppPath

Hello World

Returns the path to the app assets folder.

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

In a DroidScript project the path should be “/sdcard/DroidScript/APPNAME”
In an apk it instead returns the absolute path to the “/Assets” folder

See Also: GetPath, GetPrivateFolder

Example - Show app path

function OnStart()
{
    var path = app.GetAppPath();
    app.Alert( path );
}
    Copy     Copy All       Run