Odd, it does work on my rooted G1, (an Android Developer Phone.) Remco, does it work for you, either on the emulator or the G1?
What you are seeing indicates that run-time compilation isn't working at all for you. (Self-evalution of numbers and strings from the repl don't require compilation, and worked even before I made my changes.) If you get a chance, try the current version of the apk, along with the current instructions from my 2nd post: http://groups.google.com/group/clojure/msg/0f378ff4a352e151 If that doesn't work, send me your logcat output as well as an "ls -l" on: /data/clojure /data/clojure/classes > It just stopped, though the activity was still responding (the menu worked, > etc). I don't believe there is a menu in calc app. Which menu are you referring to? Also, if you have time, please try it on the emulator and see if it works for you there. Thanks much for the beta test. g On Jun 17, 5:32 am, Marklar <ddil...@gmail.com> wrote: > Very nice, thanks for sharing. > > I tried the first version you posted on my rooted G1. It could > evaluate strings and numbers, but unfortunately when I tried to create > a function it didn't do anything. It just stopped, though the activity > was still responding (the menu worked, etc). I looked at logcat but > couldn't find anything. > > I will try to look at again in more detail, if I figure it out I will > definitely let you know. > > On Jun 16, 4:11 pm, George Jahad <andr...@blackbirdsystems.net> wrote: > > > On Jun 16, 3:15 am, "Remco van 't Veer" <rwvtv...@gmail.com> wrote: > > > > Cool! Please share the code on github or whatever. > > > ok, I've forked your clojure tree and added my patches > > here:http://github.com/GeorgeJahad/clojure/tree/master > > The main changes are in Compiler.java, with a few in build.xml and > > main.clj. > > > Note that you'll probably need to set the sdk-location in build.xml > > > I've cleaned things up a bit and set out a new prebuilt calc apk > > here:http://georgejahad.com/clojure/calc-debug.apk > > > (Note: I've only tested these install instructions out on a Linux host > > with this sdk: android-sdk-linux_x86-1.5_r2.zip) > > > To configure the emulator: > > emulator -avd <your avd name> > > adb install -r calc-debug.apk > > adb shell mkdir /data/clojure > > adb shell mkdir /data/clojure/classes > > adb shell chmod 777 /data/clojure > > adb shell chmod 777 /data/clojure/classes > > adb forward tcp:8032 tcp:8032 > > > Then start up the calc app from the emulator gui. > > > Then access the repl like so: > > telnet localhost 8032 > > > Now you can compile from the repl. > > > My only change to examples.calc.clj was to add clojure.contrib.server- > > socket and invoke it like so from the :create routine: > > > (create-repl-server 8032) > > (repl) > > My fork of your calc source is > > here:http://github.com/GeorgeJahad/clj-android/blob/7f0497ee1aa155075d9733... > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---