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
-~----------~----~----~----~------~----~------~--~---

Reply via email to