Some environment variables in the <tt>env</tt> array are setup on early startup of AndroWish.

<tt>env(EXTERNAL_FILES)</tt>

    App specific directory on external storage.

<tt>env(EXTERNAL_STORAGE)</tt>

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

<tt>env(EXTERNAL_STORAGE2)</tt>

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

<tt>env(HOME)</tt>

    App's home directory (internal storage), usually

<tt>env(INTERNAL_STORAGE)</tt>

    App specific directory on internal storage (identical with <tt>$env(HOME)</tt>).

<tt>env(LANG)</tt>

    System language.

<tt>env(LD_LIBRARY_PATH)</tt>

    Load path for shared libraries including app specific directory (usually

<tt>env(OBB_DIR)</tt>

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

<tt>env(PACKAGE_CODE_PATH)</tt>

    Path name of the app's APK.

<tt>env(PACKAGE_NAME)</tt>

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

<tt>env(PATH)</tt>

    Path for <tt>exec(n)</tt> including app specific directory

<tt>env(TMPDIR)</tt>

    Path name for temporary files (usually fallback is value of <tt>$env(HOME)</tt>).


To test if a Tcl script is executing on the Android platform <tt>sdltk android</tt> (see [sdltk command]) should be used.