Update of "HelloTclTk"
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: 931a56c74b0bd597816a098a6e51ff78faa71ff7
Page Name:HelloTclTk
Date: 2015-11-08 14:08:30
Original User: chw
Parent: d43d4eb7799e9e6e7e02c9c6d4be84f6729b1999 (diff)
Next 504008cfc7f088427672e05895f764d21d472577
Content

This is an experimental subproject in the source tree of AndroWish found in HelloTclTk. It uses slightly modified AndroWish and SDL Java activity classes to start up an Android activity which re-uses the shared libraries from an already installed AndroWish apk. This keeps the apk file rather small (few hundred kBytes compared to over 20 MBytes). Another benefit is a short turnaround during development since no native code has to be built and the resulting apk has only few files packaged.

Own experiments: your Tcl source code must be put under .../assets/app. The very first file which gets sourced at runtime must be named main.tcl as in the example. During app building the assets folder is packed into the app's apk file and at runtime mounted on startup of the AndroWish environment as /assets/assets, i.e. the absolute path name of the startup script is /assets/assets/app/main.tcl. You should use [file dirname [info script]] in your main.tcl to refer to other files in the same folder.

Things to adapt for your own app:

Starting with the "Back to the Future" (2015-10-21) release the preferred way of building an AndroWish based App is using the Software Development Kit described in AndroWish SDK.