Version 17 of AndroWish Feature Requests

Updated 2014-01-21 08:53:44 by ramsan

Features to be added to AndroWish

MG would love to see support for the vfs package, a requirement for loading starkits.

chw the vfs package is now included starting with the "James Joyce" edition (2014-01-13).

MG Brilliant, thanks for the quick response.

MG Follow-up: I installed the newer version of AndroWish in the emulator, did a

package require starkit

which worked (1.3.3). I then tried to source my starkit, but that failed with the error

can't find package vfs::mkcl
  while executing
"package require vfs::mkcl"
  (procedure "::vfs::mk4::Mount" line 4)
  invoked from within
"::vfs::mk4::Mount /storage/sdcard/Download/starkit.kit /storage/sdcard/Download/starkit.kit -readonly"
  ("eval" body line 1)
  invoke from within
"eval [list ::vfs::${driver}::Mount $self $self} $args"

chw so there's something missing in the CVS version of vfs. Can you please point me to where I can fetch a complete vfs source archive including the required stuff for starkits? There must also be some C code which needs to be adapted for Android which I didn't find on the web, either.

MG It looks like it tries to load vfs::mkcl as a fallback when the Mk4tcl package isn't available. I can't actually find any info about vfs::mkcl, but it seems Mk4tcl can be obtained from [L1 ]

chw 2014-01-18: hopefully fixed with the "Amphetamine" edition which includes the read-only tclkit vqtcl module.

MG 99%! It errors out when trying to cd to a directory in a starkit (complains it's not a directory, while under other OSes you can CD into the file structure of a starkit without a problem). Curiously, though, it has created images with image create photo -file ... which are located inside the starkit. Anyway, I removed the cd and it loaded the starkit, which seems to be running perfectly. Thank you :)


ramsan I would like to see a short tutorial in how to compile a simple tcl package that contains c/c++ code

chw unfortunately unsupported as a standalone piece since everything is built as a whole and finally packaged into an APK. So your best option is to fetch the complete source, add your tcl package containing native code to the .../jni subdirectory of the source tree, pick one of the Android.mk makefiles from the many ported extensions, adapt it to your package, add an appropriate pkgIndex.tcl to the .../assets subdirectory, and build the beast using Android NDK/SDK and "ant". A short recipe is in Tcl/Tk on android poll.

ramsan But then ... I cannot offer the package to other users. In my specific case, I have RamDebugger running ok on Androwish. But some parts of this program are made in c++ to instrument and colorize files faster. How can I create the dynamic library for this code in order for RamDebugger to run properly?


PO would like to have an Android theme and the possibility to simulate right clicks (if possible).


jima 2014-01-14

As asked for in the Tcler's Chat:

Do you know if/how a script can be started with AndroWish instead of starting it with an interactive console and a tk default window?

This question has also arised in comp.lang.tcl:

https://groups.google.com/forum/#!topic/comp.lang.tcl/m9A6bWKPi_8

chw that is were the "borg" command comes into play as mentioned in AndroWish:

   borg shortcut add <name-of-shortcut> <file-to-be-sourced> <png-icon-as-base64-string>

The last parameter can be left out in which case Aladdin's magic device is shown. However, YMMV depending on Android version. On my 4.x devices it worked but the opposite (borg shortcut delete) did not. The <file-to-be-sourced> must be given as an absolute path and it must be readable by the user id under which the AndroWish package has been registered by the Android installer.