This site permanently moved to
https://droidscript.github.io
. Please update links accordingly.
You are being forwarded automatically in 3...
[stay here]
Back
RedirectAssets
Hello World
Reads the assets folders
“Img”
,
“Snd”
,
“Html”
and
“Misc”
from an external folder outside the apk.
app.RedirectAssets(
dir
)
Example - Redirect Assets
click to expand contents
function
OnStart
(
)
{
app
.
RedirectAssets
(
"/sdcard/DroidScript/Hello World/"
)
;
lay
=
app
.
CreateLayout
(
"Linear"
,
"VCenter,FillXY"
)
;
img
=
app
.
CreateImage
(
"Img/Hello World.png"
)
;
lay
.
AddChild
(
img
)
;
app
.
AddLayout
(
lay
)
;
}
Copy
Copy All
Run
String:
path to folder (
“/absolute/...”
or
“relative/...”
)
loading