This site permanently moved to
https://droidscript.github.io
. Please update links accordingly.
You are being forwarded automatically in 3...
[stay here]
Back
GetCountryCode
JS
Py
Hello World
Returns the code of the device country (ie.
app.GetCountryCode() →
String
“GB”
or
“DE”
)
See Also:
GetCountry
, GetLanguageCode
Example - Show Country Code
click to expand contents
function
OnStart
(
)
{
var
code
=
app
.
GetCountryCode
(
)
;
app
.
Alert
(
code
)
;
}
from
native
import
app
def
OnStart
(
)
:
code
=
app
.
GetCountryCode
(
)
app
.
Alert
(
code
)
Copy
Copy All
Run
loading