Re: [Chicken-users] FW: Scheme on Android
Thanks, Anes --- On Fri, 4/29/11, Anes Lihovac wrote: From: Anes Lihovac Subject: Re: [Chicken-users] FW: Scheme on Android To: "Steve Graham" Date: Friday, April 29, 2011, 6:05 AM Hi I wonder why Moritz hasn't answered this via the ML cause he did something like that in the past. Guess he is busy. Best is you drop in irc.freenode.net #chicken and ask him. IIRC it works via JNI Interface. BR Anes 2011/4/26 Steve Graham Can Chicken Scheme be used to develop Android apps? If so, are the any examples I could review? Otherwise, are there any other Scheme or Lisp implementations that could be used? Thanks, Steve Forwarded Message From: jsgraha...@yahoo.com To: chicken-users-requ...@nongnu.org Sent: Tue Apr 26th, 2011 2:41 PM EDT Subject: Scheme on Android Can Chicken be used to develop apps for the Android? If so, are there any docs on it? If not, is there another Scheme or Lisp that could be used? Thanks, Steve ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users -- Herr / Mr. Anes Lihovac Rondorfer Hauptstr. 90 50997 Köln Email: anes.liho...@gmail.com Tel.: +49 2233 71 38 741 Mobil: +49 178 52 50 782 ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] FW: Scheme on Android
Hi Steve, Steve Graham writes: > I wonder why Moritz hasn't answered this via the ML cause > he did something like that in the past. Guess he is busy. it's true, I did! Sorry for not replying yet, I marked your message actually but didn't get around to typing up a reply until now. You can indeed use Chicken on Android by means of the NDK. All you need is a C library that embeds Chicken (see http://wiki.call-cc.org/man/4/Embedding on how to do that) which is in turn called from your main program. If you are targeting Android >= 2.3 (IIRC, maybe >= 2.2) this can also be a native program, however older versions do not provide access to the Activity API so you'd need a Java wrapper and call your native library from it. I have only used it for OpenGL ES programming so far so I don't know whether building normal GUI activities is really feasible. A nice alternative for GUI programming on Android is Kawa. Per Bothner has written a howto for getting started with Kawa development for Android (http://per.bothner.com/blog/2010/AndroidHelloScheme/). It turned out to be too slow for OpenGL programming though. I'll try to write up a Chicken howto for the Gazette in the near future! HTH Moritz ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users