Environment Variables
Not logged in

Some environment variables in the env array are setup on early startup of AndroWish.

env(EXTERNAL_FILES)

App specific directory on external storage.

env(EXTERNAL_STORAGE)

Path name of external storage (could be internal SD card).

env(EXTERNAL_STORAGE2)

Path name of external storage (real external SD card).

env(HOME)

App's home directory (internal storage), usually /data/data/tk.tcl.wish/files.

env(INTERNAL_STORAGE)

App specific directory on internal storage (identical with $env(HOME)).

env(LANG)

System language.

env(LD_LIBRARY_PATH)

Load path for shared libraries including app specific directory (usually /data/data/tk.tcl.wish/libs).

env(OBB_DIR)

On some Android versions extra stuff bundled with the app (currently unused).

env(PACKAGE_CODE_PATH)

Path name of the app's APK.

env(PACKAGE_NAME)

Package name where the app's main class comes from (tk.tcl.wish).

env(PATH)

Path for exec(n) including app specific directory

env(TMPDIR)

Path name for temporary files (usually /data/data/tk.tcl.wish/cache, fallback is value of $env(HOME)).

To test if a Tcl script is executing on the Android platform sdltk android (see sdltk command) should be used.