This site permanently moved to
https://droidscript.github.io
. Please update links accordingly.
You are being forwarded automatically in 3...
[stay here]
Back
GetFreeSpace
Hello World
Returns the free space of the internal or external storage in GigaBytes.
app.GetFreeSpace(
mode
) →
Number:
gigabytes
Example - Show remaining internal and external storage
click to expand contents
function
OnStart
(
)
{
var
intSize
=
Math
.
round
(
app
.
GetFreeSpace
(
"internal"
)
*
1024
)
;
var
extSize
=
Math
.
round
(
app
.
GetFreeSpace
(
"external"
)
*
1024
)
;
var
text
=
"internal: "
+
intSize
+
" MB\n"
+
"external: "
+
extSize
+
" MB"
;
app
.
Alert
(
text
)
;
}
Copy
Copy All
Run
String:
“internal”
or
“external”
loading