2009-01-03

Knopflerfish on Android/Dalvik VM

Thanks to Yuuki at Makewave Japan we got KF up and running on the Android/Dalvik VM platform. Also, full credits to the original work from Karl and Marcel at Luminis who figured out how to use the DexFile API about a year ago.

The images shows the KF http and text consoles running on the Android emulator.

As of revision 2624 in the KF trunk, the necessary code to install and start "dexified" bundles is added to the KF framework. Additionally, fixes have been done to the KF http server (actually, in the jsdk bundle to solve a bug in dalvik) to allow you to run a web server on Android.

The KF ant build system also contains support for adding the necessary classes.dex file to the framework and bundles.

Currently, we do not distribute such a dexified version, but you could build it yourself by downloading the Android SDK and building KF with

> ant -DANDROID_HOME=[path to android sdk installation dir]

you can then launch the framework (after pushing the necessary files to the emulator) using

> adb shell
# cd [kf_dir]
# dalvikvm -classpath framework.jar org.knopflerfish.framework.Main \
-xargs my.xargs


/E