I understand that Android apps are typically written in Java. How then is Gambit able to run on that platform? If it is possible to write GUI apps for the Android using Gambit, are there any pointers on how to get started?
Thanks, Steve
Afficher les réponses par date
Hi Steve,
You have 2 ways: a) Java JNI -> C -> Scheme b) Using Android Native Activity and the NDK for developing in C.
I've been tweaking and extending Blackhole to play nicely with Android, but I found a major limitation in Blackhole that prevented from totally achieving it without getting into the macro-expansion part of BH (don't have time for that) and so I decided to use plain Gambit. This is an example using option "a" https://github.com/seoushi/gambit-android-example I've made it work with option "b", is quite simple, but at the moment I'm messing around with that code so is not working: https://github.com/alvatarc/bh-android-template
Soon (1-2 weeks, as soon as I have some spare hours) I'll have the same code working again Scheme. It is quite straightforward though, once you have that example.
On Mon, Mar 12, 2012 at 6:19 PM, Steve Graham jsgrahamus@yahoo.com wrote:
I understand that Android apps are typically written in Java. How then is Gambit able to run on that platform? If it is possible to write GUI apps for the Android using Gambit, are there any pointers on how to get started?
Thanks, Steve
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
Regards,
Keith
On Mar 12, 2012, at 10:19 AM, Steve Graham wrote:
I understand that Android apps are typically written in Java. How then is Gambit able to run on that platform? If it is possible to write GUI apps for the Android using Gambit, are there any pointers on how to get started?
Thanks, Steve _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
On 2012-03-12, at 2:38 PM, Keith Flower wrote:
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
That's nice to hear.
I've has several inquiries about using Gambit to develop iOS apps, and some people are attracted by the possibility of easily porting Gambit apps between mobile platforms. I also looked into this in the context of the Hacking Health hackathon, and even got the Sencha Touch toolkit (http://www.sencha.com/products/touch) working with Gambit REPL. It is a simple way of developing native-looking mobile applications. Rewriting the Gambit REPL user-interface with Sencha Touch would make the UI identical on iOS and Android, and allow other developers to eaily build nice UIs with it, without using native methods.
It would be nice if we could find a way to merge the source codes so that we can keep the iOS and Android versions in sync more easily. Perhaps Gambit REPL has grown too much in complexity to qualify as an iOS "example" and it should be in a separate category (app? product? software? contrib?) and then it would make sense to support more than iOS.
I'm open to the idea of giving write access to the git repository to motivated contributors. So if you are motivated please let me know.
Marc
Hi Marc,
Sorry for my delay - we had talked about merging the iOS/Android source a few months ago. As you say, this may be a good time to do it as I bring the Android version up to match the latest iOS version. I appear to be just about there.
The changes I make in Gambit code are restricted to the files
program.scm intf.scm
and are actually pretty minimal.
I'll take a look at Sencha's toolkit - I take it that it is HTML5-based.
I followed the work you guys did on the health hackathon - congratulations, very interesting stuff. I'm a physician in the SF Bay area and occasionally muse about some robust software support for healthcare and research:
http://apps.keithflower.org/?p=238 http://apps.keithflower.org/?p=265 http://apps.keithflower.org/?p=361
I'll make time to get this new version of Android for Gambit out the door, and structure the source so it's as painless as possible to merge. I'd be glad to get it into your git repo.
Regards,
Keith
On Mar 12, 2012, at 12:10 PM, Marc Feeley wrote:
On 2012-03-12, at 2:38 PM, Keith Flower wrote:
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
That's nice to hear.
I've has several inquiries about using Gambit to develop iOS apps, and some people are attracted by the possibility of easily porting Gambit apps between mobile platforms. I also looked into this in the context of the Hacking Health hackathon, and even got the Sencha Touch toolkit (http://www.sencha.com/products/touch) working with Gambit REPL. It is a simple way of developing native-looking mobile applications. Rewriting the Gambit REPL user-interface with Sencha Touch would make the UI identical on iOS and Android, and allow other developers to eaily build nice UIs with it, without using native methods.
It would be nice if we could find a way to merge the source codes so that we can keep the iOS and Android versions in sync more easily. Perhaps Gambit REPL has grown too much in complexity to qualify as an iOS "example" and it should be in a separate category (app? product? software? contrib?) and then it would make sense to support more than iOS.
I'm open to the idea of giving write access to the git repository to motivated contributors. So if you are motivated please let me know.
Marc
On 2012-03-12, at 3:36 PM, Keith Flower wrote:
Hi Marc,
Sorry for my delay - we had talked about merging the iOS/Android source a few months ago. As you say, this may be a good time to do it as I bring the Android version up to match the latest iOS version. I appear to be just about there.
The changes I make in Gambit code are restricted to the files
program.scm intf.scm
and are actually pretty minimal.
I'll take a look at Sencha's toolkit - I take it that it is HTML5-based.
Yes.
I followed the work you guys did on the health hackathon - congratulations, very interesting stuff.
Unfortunately I can't take any credit for it... because in the end I decided not to participate (I spent the time working on other aspects of Gambit with my team, Guillaume Cartier and Eric Thivierge).
The project which was built with Gambit on iOS is the "Medical Hot or Not" project (http://projects.hackinghealth.ca/) which François Magnan mentionned on this list some time ago.
I'm a physician in the SF Bay area and occasionally muse about some robust software support for healthcare and research:
http://apps.keithflower.org/?p=238 http://apps.keithflower.org/?p=265 http://apps.keithflower.org/?p=361
Neat.
I'll make time to get this new version of Android for Gambit out the door, and structure the source so it's as painless as possible to merge. I'd be glad to get it into your git repo.
OK, I'll figure out how to give you access and get back to you ASAP.
Marc
Hi Marc,
Finally I have a reasonably stable version of an Android REPL that matches the iOS version that accompanied Gambit v4.6.2, and am working toward v4.6.5.
In testing the UI changes, I ran across some interesting Android problems around trying to evaluate Javascript synchronously. I think I have that fixed now, and so keeping the iOS and Android user interfaces synced via webviews continues to look viable (if a bit painful at times). I'll try to take some time to play with the Sencha Touch stuff and come up to speed on it, if you think that represents a better way to go forward with the UI.
Before pushing anything to github I wanted to ask if you had any additional thoughts about structuring and maintaining these iOS and Android versions. I had planned to just create examples/android, but I wonder if you now want to decouple these from the main Gambit release as "apps" or "contrib" or something, as you indicated below.
My changes to scheme code are restricted to intf.scm and program.scm. I have one C source file (gambit-android-jni.c) for the JNI (Java to native code interface) stuff, and of course I don't use AppDelegate.m/h or ViewController.m/h.
I'll include build scripts and instructions for build via Ant and Eclipse. The source layout for Gambit for Android looks like:
├── assets ├── bin │ ├── classes │ │ └── org │ │ └── keithflower │ │ └── gambit │ └── res │ ├── drawable-hdpi │ ├── drawable-ldpi │ └── drawable-mdpi ├── gen │ └── org │ └── keithflower │ └── gambit ├── libs │ └── armeabi ├── obj │ └── local │ └── armeabi │ ├── objs │ │ └── gambit │ └── objs-debug │ └── gambit ├── res │ ├── drawable-hdpi │ ├── drawable-ldpi │ ├── drawable-mdpi │ ├── layout │ ├── menu │ └── values └── src └── org └── keithflower └── gambit
Regards,
Keith
On Mar 12, 2012, at 12:10 PM, Marc Feeley wrote:
On 2012-03-12, at 2:38 PM, Keith Flower wrote:
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
That's nice to hear.
I've has several inquiries about using Gambit to develop iOS apps, and some people are attracted by the possibility of easily porting Gambit apps between mobile platforms. I also looked into this in the context of the Hacking Health hackathon, and even got the Sencha Touch toolkit (http://www.sencha.com/products/touch) working with Gambit REPL. It is a simple way of developing native-looking mobile applications. Rewriting the Gambit REPL user-interface with Sencha Touch would make the UI identical on iOS and Android, and allow other developers to eaily build nice UIs with it, without using native methods.
It would be nice if we could find a way to merge the source codes so that we can keep the iOS and Android versions in sync more easily. Perhaps Gambit REPL has grown too much in complexity to qualify as an iOS "example" and it should be in a separate category (app? product? software? contrib?) and then it would make sense to support more than iOS.
I'm open to the idea of giving write access to the git repository to motivated contributors. So if you are motivated please let me know.
Marc
Very well. I think the best is to move "examples/iOS" to "contrib/GambitREPL". Then we can merge with your code for android. There should be two makefile targets, "ios" and "android". A "make ios" will build the Gambit libraries for iOS (i.e. gambit-iOS subdirectory built with the build-gambit-ios script) if it is not already compiled. A "make android" should probably also build the appropriate libraries for android. If it is hard to build both systems from the same makefile, perhaps 2 makefiles would make sense.
How about that?
Marc
On 2012-04-02, at 5:47 PM, Keith Flower wrote:
Hi Marc,
Finally I have a reasonably stable version of an Android REPL that matches the iOS version that accompanied Gambit v4.6.2, and am working toward v4.6.5.
In testing the UI changes, I ran across some interesting Android problems around trying to evaluate Javascript synchronously. I think I have that fixed now, and so keeping the iOS and Android user interfaces synced via webviews continues to look viable (if a bit painful at times). I'll try to take some time to play with the Sencha Touch stuff and come up to speed on it, if you think that represents a better way to go forward with the UI.
Before pushing anything to github I wanted to ask if you had any additional thoughts about structuring and maintaining these iOS and Android versions. I had planned to just create examples/android, but I wonder if you now want to decouple these from the main Gambit release as "apps" or "contrib" or something, as you indicated below.
My changes to scheme code are restricted to intf.scm and program.scm. I have one C source file (gambit-android-jni.c) for the JNI (Java to native code interface) stuff, and of course I don't use AppDelegate.m/h or ViewController.m/h.
I'll include build scripts and instructions for build via Ant and Eclipse. The source layout for Gambit for Android looks like:
├── assets ├── bin │ ├── classes │ │ └── org │ │ └── keithflower │ │ └── gambit │ └── res │ ├── drawable-hdpi │ ├── drawable-ldpi │ └── drawable-mdpi ├── gen │ └── org │ └── keithflower │ └── gambit ├── libs │ └── armeabi ├── obj │ └── local │ └── armeabi │ ├── objs │ │ └── gambit │ └── objs-debug │ └── gambit ├── res │ ├── drawable-hdpi │ ├── drawable-ldpi │ ├── drawable-mdpi │ ├── layout │ ├── menu │ └── values └── src └── org └── keithflower └── gambit
Regards,
Keith
On Mar 12, 2012, at 12:10 PM, Marc Feeley wrote:
On 2012-03-12, at 2:38 PM, Keith Flower wrote:
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
That's nice to hear.
I've has several inquiries about using Gambit to develop iOS apps, and some people are attracted by the possibility of easily porting Gambit apps between mobile platforms. I also looked into this in the context of the Hacking Health hackathon, and even got the Sencha Touch toolkit (http://www.sencha.com/products/touch) working with Gambit REPL. It is a simple way of developing native-looking mobile applications. Rewriting the Gambit REPL user-interface with Sencha Touch would make the UI identical on iOS and Android, and allow other developers to eaily build nice UIs with it, without using native methods.
It would be nice if we could find a way to merge the source codes so that we can keep the iOS and Android versions in sync more easily. Perhaps Gambit REPL has grown too much in complexity to qualify as an iOS "example" and it should be in a separate category (app? product? software? contrib?) and then it would make sense to support more than iOS.
I'm open to the idea of giving write access to the git repository to motivated contributors. So if you are motivated please let me know.
Marc
On Apr 2, 2012, at 7:57 PM, Marc Feeley wrote:
Very well. I think the best is to move "examples/iOS" to "contrib/GambitREPL". Then we can merge with your code for android. There should be two makefile targets, "ios" and "android". A "make ios" will build the Gambit libraries for iOS (i.e. gambit-iOS subdirectory built with the build-gambit-ios script) if it is not already compiled. A "make android" should probably also build the appropriate libraries for android. If it is hard to build both systems from the same makefile, perhaps 2 makefiles would make sense.
How about that?
Sounds good to me. Let me take a closer look at the iOS build process and use that as a model.
Do you have easy access to an Android device or the emulator? It would be great to get your feedback.
Keith
Marc
On 2012-04-02, at 5:47 PM, Keith Flower wrote:
Hi Marc,
Finally I have a reasonably stable version of an Android REPL that matches the iOS version that accompanied Gambit v4.6.2, and am working toward v4.6.5.
In testing the UI changes, I ran across some interesting Android problems around trying to evaluate Javascript synchronously. I think I have that fixed now, and so keeping the iOS and Android user interfaces synced via webviews continues to look viable (if a bit painful at times). I'll try to take some time to play with the Sencha Touch stuff and come up to speed on it, if you think that represents a better way to go forward with the UI.
Before pushing anything to github I wanted to ask if you had any additional thoughts about structuring and maintaining these iOS and Android versions. I had planned to just create examples/android, but I wonder if you now want to decouple these from the main Gambit release as "apps" or "contrib" or something, as you indicated below.
My changes to scheme code are restricted to intf.scm and program.scm. I have one C source file (gambit-android-jni.c) for the JNI (Java to native code interface) stuff, and of course I don't use AppDelegate.m/h or ViewController.m/h.
I'll include build scripts and instructions for build via Ant and Eclipse. The source layout for Gambit for Android looks like:
├── assets ├── bin │ ├── classes │ │ └── org │ │ └── keithflower │ │ └── gambit │ └── res │ ├── drawable-hdpi │ ├── drawable-ldpi │ └── drawable-mdpi ├── gen │ └── org │ └── keithflower │ └── gambit ├── libs │ └── armeabi ├── obj │ └── local │ └── armeabi │ ├── objs │ │ └── gambit │ └── objs-debug │ └── gambit ├── res │ ├── drawable-hdpi │ ├── drawable-ldpi │ ├── drawable-mdpi │ ├── layout │ ├── menu │ └── values └── src └── org └── keithflower └── gambit
Regards,
Keith
On Mar 12, 2012, at 12:10 PM, Marc Feeley wrote:
On 2012-03-12, at 2:38 PM, Keith Flower wrote:
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
That's nice to hear.
I've has several inquiries about using Gambit to develop iOS apps, and some people are attracted by the possibility of easily porting Gambit apps between mobile platforms. I also looked into this in the context of the Hacking Health hackathon, and even got the Sencha Touch toolkit (http://www.sencha.com/products/touch) working with Gambit REPL. It is a simple way of developing native-looking mobile applications. Rewriting the Gambit REPL user-interface with Sencha Touch would make the UI identical on iOS and Android, and allow other developers to eaily build nice UIs with it, without using native methods.
It would be nice if we could find a way to merge the source codes so that we can keep the iOS and Android versions in sync more easily. Perhaps Gambit REPL has grown too much in complexity to qualify as an iOS "example" and it should be in a separate category (app? product? software? contrib?) and then it would make sense to support more than iOS.
I'm open to the idea of giving write access to the git repository to motivated contributors. So if you are motivated please let me know.
Marc
On 2012-04-03, at 1:35 AM, Keith Flower wrote:
Sounds good to me. Let me take a closer look at the iOS build process and use that as a model.
Great.
Do you have easy access to an Android device or the emulator? It would be great to get your feedback.
Yes I have the android SDK and NDK. I have been using the simulator to test ARM code generation for the upcoming Gambit native code back-end.
Marc
On Apr 2, 2012, at 7:57 PM, Marc Feeley wrote:
Very well. I think the best is to move "examples/iOS" to "contrib/GambitREPL". Then we can merge with your code for android. There should be two makefile targets, "ios" and "android". A "make ios" will build the Gambit libraries for iOS (i.e. gambit-iOS subdirectory built with the build-gambit-ios script) if it is not already compiled. A "make android" should probably also build the appropriate libraries for android. If it is hard to build both systems from the same makefile, perhaps 2 makefiles would make sense.
How about that?
Marc, I've now got a makefile and the Android source configured for Gambit v4.6.5 as you suggested, but I think I should consult with you in a bit more detail about the build process for both targets. I wonder if I could provide you with a tarball of what I have and get your feedback before pushing changes to github.
Regards,
Keith
Marc
On 2012-04-02, at 5:47 PM, Keith Flower wrote:
Hi Marc,
Finally I have a reasonably stable version of an Android REPL that matches the iOS version that accompanied Gambit v4.6.2, and am working toward v4.6.5.
In testing the UI changes, I ran across some interesting Android problems around trying to evaluate Javascript synchronously. I think I have that fixed now, and so keeping the iOS and Android user interfaces synced via webviews continues to look viable (if a bit painful at times). I'll try to take some time to play with the Sencha Touch stuff and come up to speed on it, if you think that represents a better way to go forward with the UI.
Before pushing anything to github I wanted to ask if you had any additional thoughts about structuring and maintaining these iOS and Android versions. I had planned to just create examples/android, but I wonder if you now want to decouple these from the main Gambit release as "apps" or "contrib" or something, as you indicated below.
My changes to scheme code are restricted to intf.scm and program.scm. I have one C source file (gambit-android-jni.c) for the JNI (Java to native code interface) stuff, and of course I don't use AppDelegate.m/h or ViewController.m/h.
I'll include build scripts and instructions for build via Ant and Eclipse. The source layout for Gambit for Android looks like:
├── assets ├── bin │ ├── classes │ │ └── org │ │ └── keithflower │ │ └── gambit │ └── res │ ├── drawable-hdpi │ ├── drawable-ldpi │ └── drawable-mdpi ├── gen │ └── org │ └── keithflower │ └── gambit ├── libs │ └── armeabi ├── obj │ └── local │ └── armeabi │ ├── objs │ │ └── gambit │ └── objs-debug │ └── gambit ├── res │ ├── drawable-hdpi │ ├── drawable-ldpi │ ├── drawable-mdpi │ ├── layout │ ├── menu │ └── values └── src └── org └── keithflower └── gambit
Regards,
Keith
On Mar 12, 2012, at 12:10 PM, Marc Feeley wrote:
On 2012-03-12, at 2:38 PM, Keith Flower wrote:
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
That's nice to hear.
I've has several inquiries about using Gambit to develop iOS apps, and some people are attracted by the possibility of easily porting Gambit apps between mobile platforms. I also looked into this in the context of the Hacking Health hackathon, and even got the Sencha Touch toolkit (http://www.sencha.com/products/touch) working with Gambit REPL. It is a simple way of developing native-looking mobile applications. Rewriting the Gambit REPL user-interface with Sencha Touch would make the UI identical on iOS and Android, and allow other developers to eaily build nice UIs with it, without using native methods.
It would be nice if we could find a way to merge the source codes so that we can keep the iOS and Android versions in sync more easily. Perhaps Gambit REPL has grown too much in complexity to qualify as an iOS "example" and it should be in a separate category (app? product? software? contrib?) and then it would make sense to support more than iOS.
I'm open to the idea of giving write access to the git repository to motivated contributors. So if you are motivated please let me know.
Marc
On 2012-04-18, at 4:08 PM, Keith Flower wrote:
Marc, I've now got a makefile and the Android source configured for Gambit v4.6.5 as you suggested, but I think I should consult with you in a bit more detail about the build process for both targets. I wonder if I could provide you with a tarball of what I have and get your feedback before pushing changes to github.
Yes, please send me a tar ball.
Marc
On 2012-04-18, at 4:10 PM, Marc Feeley wrote:
On 2012-04-18, at 4:08 PM, Keith Flower wrote:
Marc, I've now got a makefile and the Android source configured for Gambit v4.6.5 as you suggested, but I think I should consult with you in a bit more detail about the build process for both targets. I wonder if I could provide you with a tarball of what I have and get your feedback before pushing changes to github.
Yes, please send me a tar ball.
Marc
I have created a "contrib" subdirectory in the Gambit distribution, and moved the Gambit REPL example (i.e. examples/iOS) to it. This way, changes to Gambit REPL to support android will be in a properly named place.
Marc
Keith,
What steps did you take to learn Java, how to use Java for GUI's on Android and how to tie it together with JNI? Any recommended books or URL's?
Thanks, Steve
________________________________ From: Keith Flower keith@keithflower.org To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Monday, March 12, 2012 12:38 PM Subject: Re: [gambit-list] Gambit on Android
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
Regards,
Keith
On Mar 12, 2012, at 10:19 AM, Steve Graham wrote:
I understand that Android apps are typically written in Java. How then is Gambit able to run on that platform? If it is possible to write GUI apps for the Android using Gambit, are there any pointers on how to get started?
Thanks, Steve_______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Hi Steve,
These are the two I've used:
http://www.apress.com/9781430226475 http://www.apress.com/9781430230427
Android Pro Games explains a bit of JNI interface, but it was written prior to Native Activity (Android 2.2) and even NDK times, but is worth reading.
Also these: http://commonsware.com/
Best
On Tue, Mar 13, 2012 at 11:35 PM, Steve Graham jsgrahamus@yahoo.com wrote:
Keith,
What steps did you take to learn Java, how to use Java for GUI's on Android and how to tie it together with JNI? Any recommended books or URL's?
Thanks, Steve
From: Keith Flower keith@keithflower.org
To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Monday, March 12, 2012 12:38 PM
Subject: Re: [gambit-list] Gambit on Android
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
Regards,
Keith
On Mar 12, 2012, at 10:19 AM, Steve Graham wrote:
I understand that Android apps are typically written in Java. How then is Gambit able to run on that platform? If it is possible to write GUI apps for the Android using Gambit, are there any pointers on how to get started?
Thanks, Steve _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Thanks, Alvaro. Does this apply if you wish to develop apps other than games?
________________________________ From: Álvaro Castro-Castilla alvaro.castro.castilla@gmail.com To: Steve Graham jsgrahamus@yahoo.com Cc: Keith Flower keith@keithflower.org; Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 13, 2012 5:44 PM Subject: Re: [gambit-list] Gambit on Android
Hi Steve,
These are the two I've used:
http://www.apress.com/9781430226475 http://www.apress.com/9781430230427
Android Pro Games explains a bit of JNI interface, but it was written prior to Native Activity (Android 2.2) and even NDK times, but is worth reading.
Also these: http://commonsware.com/
Best
On Tue, Mar 13, 2012 at 11:35 PM, Steve Graham jsgrahamus@yahoo.com wrote:
Keith,
What steps did you take to learn Java, how to use Java for GUI's on Android and how to tie it together with JNI? Any recommended books or URL's?
Thanks, Steve
From: Keith Flower keith@keithflower.org
To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Monday, March 12, 2012 12:38 PM
Subject: Re: [gambit-list] Gambit on Android
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
Regards,
Keith
On Mar 12, 2012, at 10:19 AM, Steve Graham wrote:
I understand that Android apps are typically written in Java. How then is Gambit able to run on that platform? If it is possible to write GUI apps for the Android using Gambit, are there any pointers on how to get started?
Thanks, Steve _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Yes, it does apply, however the main difference is that usually games are made using only one "Activity" (the concept of android that describes sort of "windows" that compose a program). When you are developing an app, you usually will code it using the Android SDK, the UI API, several Activities, and then you need to make the JNI bindings. I would say games are more suitable for Scheme development with Gambit, since you have easier access to the NDK (the part of the Android system libs exposed through a C interface).
2012/3/14 Steve Graham jsgrahamus@yahoo.com:
Thanks, Alvaro. Does this apply if you wish to develop apps other than games?
From: Álvaro Castro-Castilla alvaro.castro.castilla@gmail.com To: Steve Graham jsgrahamus@yahoo.com Cc: Keith Flower keith@keithflower.org; Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 13, 2012 5:44 PM
Subject: Re: [gambit-list] Gambit on Android
Hi Steve,
These are the two I've used:
http://www.apress.com/9781430226475 http://www.apress.com/9781430230427
Android Pro Games explains a bit of JNI interface, but it was written prior to Native Activity (Android 2.2) and even NDK times, but is worth reading.
Also these: http://commonsware.com/
Best
On Tue, Mar 13, 2012 at 11:35 PM, Steve Graham jsgrahamus@yahoo.com wrote:
Keith,
What steps did you take to learn Java, how to use Java for GUI's on Android and how to tie it together with JNI? Any recommended books or URL's?
Thanks, Steve
From: Keith Flower keith@keithflower.org
To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Monday, March 12, 2012 12:38 PM
Subject: Re: [gambit-list] Gambit on Android
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
Regards,
Keith
On Mar 12, 2012, at 10:19 AM, Steve Graham wrote:
I understand that Android apps are typically written in Java. How then is Gambit able to run on that platform? If it is possible to write GUI apps for the Android using Gambit, are there any pointers on how to get started?
Thanks, Steve _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Okay. Thanks, Steve
________________________________ From: Álvaro Castro-Castilla alvaro.castro.castilla@gmail.com To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 13, 2012 6:17 PM Subject: Re: [gambit-list] Gambit on Android
Yes, it does apply, however the main difference is that usually games are made using only one "Activity" (the concept of android that describes sort of "windows" that compose a program). When you are developing an app, you usually will code it using the Android SDK, the UI API, several Activities, and then you need to make the JNI bindings. I would say games are more suitable for Scheme development with Gambit, since you have easier access to the NDK (the part of the Android system libs exposed through a C interface).
2012/3/14 Steve Graham jsgrahamus@yahoo.com:
Thanks, Alvaro. Does this apply if you wish to develop apps other than games?
From: Álvaro Castro-Castilla alvaro.castro.castilla@gmail.com To: Steve Graham jsgrahamus@yahoo.com Cc: Keith Flower keith@keithflower.org; Gambit List Gambit-list@iro.umontreal.ca Sent: Tuesday, March 13, 2012 5:44 PM
Subject: Re: [gambit-list] Gambit on Android
Hi Steve,
These are the two I've used:
http://www.apress.com/9781430226475 http://www.apress.com/9781430230427
Android Pro Games explains a bit of JNI interface, but it was written prior to Native Activity (Android 2.2) and even NDK times, but is worth reading.
Also these: http://commonsware.com/
Best
On Tue, Mar 13, 2012 at 11:35 PM, Steve Graham jsgrahamus@yahoo.com wrote:
Keith,
What steps did you take to learn Java, how to use Java for GUI's on Android and how to tie it together with JNI? Any recommended books or URL's?
Thanks, Steve
From: Keith Flower keith@keithflower.org
To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Monday, March 12, 2012 12:38 PM
Subject: Re: [gambit-list] Gambit on Android
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
Regards,
Keith
On Mar 12, 2012, at 10:19 AM, Steve Graham wrote:
I understand that Android apps are typically written in Java. How then is Gambit able to run on that platform? If it is possible to write GUI apps for the Android using Gambit, are there any pointers on how to get started?
Thanks, Steve _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
On Mar 13, 2012, at 3:35 PM, Steve Graham wrote:
Keith,
What steps did you take to learn Java, how to use Java for GUI's on Android and how to tie it together with JNI? Any recommended books or URL's?
I can't think of any particular Java resource I've used online more than others. Probably for Android the best overall resources have been the numerous example programs that come with the development kit. There are NDK examples as well. JNI to me seems a bit arcane - here are a couple of links I found helpful:
http://developer.android.com/guide/practices/design/jni.html http://android.wooyd.org/JNIExample/files/JNIExample.pdf
Regards,
Keith
Thanks, Steve
From: Keith Flower keith@keithflower.org To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Monday, March 12, 2012 12:38 PM Subject: Re: [gambit-list] Gambit on Android
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
Regards,
Keith
On Mar 12, 2012, at 10:19 AM, Steve Graham wrote:
I understand that Android apps are typically written in Java. How then is Gambit able to run on that platform? If it is possible to write GUI apps for the Android using Gambit, are there any pointers on how to get started?
Thanks, Steve _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Keith,
A few more questions. 1) Can I use your Android Gambit to make a self-contained app? 2) Can I strip away the unneeded parts of Gambit before making the app? If so, how does one do that?
Thanks, Steve
________________________________ From: Keith Flower keith@keithflower.org To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Wednesday, March 14, 2012 7:49 PM Subject: Re: [gambit-list] Gambit on Android
On Mar 13, 2012, at 3:35 PM, Steve Graham wrote:
Keith,
What steps did you take to learn Java, how to use Java for GUI's on Android and how to tie it together with JNI? Any recommended books or URL's?
I can't think of any particular Java resource I've used online more than others. Probably for Android the best overall resources have been the numerous example programs that come with the development kit. There are NDK examples as well. JNI to me seems a bit arcane - here are a couple of links I found helpful:
http://developer.android.com/guide/practices/design/jni.html http://android.wooyd.org/JNIExample/files/JNIExample.pdf
Regards,
Keith
Thanks, Steve
From: Keith Flower keith@keithflower.org To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Monday, March 12, 2012 12:38 PM Subject: Re: [gambit-list] Gambit on Android
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
Regards,
Keith
On Mar 12, 2012, at 10:19 AM, Steve Graham wrote:
I understand that Android apps are typically written in Java. How then is Gambit able to run on that platform? If it is possible to write GUI apps for the Android using Gambit, are there any pointers on how to get started?
Thanks, Steve_______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
I noticed that if I created a new screen from the script page and ran it, the set-webView-content function worked as expected. When I ran it from the repl instead, it did nothing.
How can I get this to work?
Thanks, Steve
________________________________ From: Steve Graham jsgrahamus@yahoo.com To: Keith Flower keith@keithflower.org Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Saturday, June 2, 2012 4:50 PM Subject: Re: [gambit-list] Gambit on Android
Keith,
A few more questions. 1) Can I use your Android Gambit to make a self-contained app? 2) Can I strip away the unneeded parts of Gambit before making the app? If so, how does one do that?
Thanks, Steve
________________________________ From: Keith Flower keith@keithflower.org To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Wednesday, March 14, 2012 7:49 PM Subject: Re: [gambit-list] Gambit on Android
On Mar 13, 2012, at 3:35 PM, Steve Graham wrote:
Keith,
What steps did you take to learn Java, how to use Java for GUI's on Android and how to tie it together with JNI? Any recommended books or URL's?
I can't think of any particular Java resource I've used online more than others. Probably for Android the best overall resources have been the numerous example programs that come with the development kit. There are NDK examples as well. JNI to me seems a bit arcane - here are a couple of links I found helpful:
http://developer.android.com/guide/practices/design/jni.html http://android.wooyd.org/JNIExample/files/JNIExample.pdf
Regards,
Keith
Thanks, Steve
From: Keith Flower keith@keithflower.org To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Monday, March 12, 2012 12:38 PM Subject: Re: [gambit-list] Gambit on Android
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
Regards,
Keith
On Mar 12, 2012, at 10:19 AM, Steve Graham wrote:
I understand that Android apps are typically written in Java. How then is Gambit able to run on that platform? If it is possible to write GUI apps for the Android using Gambit, are there any pointers on how to get started?
Thanks, Steve_______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
_______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
That should have been "a new script on the script page"
________________________________ From: Steve Graham jsgrahamus@yahoo.com To: Steve Graham jsgrahamus@yahoo.com; Keith Flower keith@keithflower.org Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Monday, June 4, 2012 10:59 AM Subject: Re: [gambit-list] Gambit on Android
I noticed that if I created a new screen from the script page and ran it, the set-webView-content function worked as expected. When I ran it from the repl instead, it did nothing.
How can I get this to work?
Thanks, Steve
________________________________ From: Steve Graham jsgrahamus@yahoo.com To: Keith Flower keith@keithflower.org Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Saturday, June 2, 2012 4:50 PM Subject: Re: [gambit-list] Gambit on Android
Keith,
A few more questions. 1) Can I use your Android Gambit to make a self-contained app? 2) Can I strip away the unneeded parts of Gambit before making the app? If so, how does one do that?
Thanks, Steve
________________________________ From: Keith Flower keith@keithflower.org To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Wednesday, March 14, 2012 7:49 PM Subject: Re: [gambit-list] Gambit on Android
On Mar 13, 2012, at 3:35 PM, Steve Graham wrote:
Keith,
What steps did you take to learn Java, how to use Java for GUI's on Android and how to tie it together with JNI? Any recommended books or URL's?
I can't think of any particular Java resource I've used online more than others. Probably for Android the best overall resources have been the numerous example programs that come with the development kit. There are NDK examples as well. JNI to me seems a bit arcane - here are a couple of links I found helpful:
http://developer.android.com/guide/practices/design/jni.html http://android.wooyd.org/JNIExample/files/JNIExample.pdf
Regards,
Keith
Thanks, Steve
From: Keith Flower keith@keithflower.org To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Monday, March 12, 2012 12:38 PM Subject: Re: [gambit-list] Gambit on Android
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
Regards,
Keith
On Mar 12, 2012, at 10:19 AM, Steve Graham wrote:
I understand that Android apps are typically written in Java. How then is Gambit able to run on that platform? If it is possible to write GUI apps for the Android using Gambit, are there any pointers on how to get started?
Thanks, Steve_______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
_______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
On Jun 4, 2012, at 9:59 AM, Steve Graham wrote:
I noticed that if I created a new screen from the script page and ran it, the set-webView-content function worked as expected. When I ran it from the repl instead, it did nothing.
How can I get this to work?
Use (show-webView) in the REPL after your call to (set-webView-content "...") .
Keith
Thanks, Steve
From: Steve Graham jsgrahamus@yahoo.com To: Keith Flower keith@keithflower.org Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Saturday, June 2, 2012 4:50 PM Subject: Re: [gambit-list] Gambit on Android
Keith,
A few more questions.
- Can I use your Android Gambit to make a self-contained app?
- Can I strip away the unneeded parts of Gambit before making the app? If so, how does one do that?
Thanks, Steve
From: Keith Flower keith@keithflower.org To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Wednesday, March 14, 2012 7:49 PM Subject: Re: [gambit-list] Gambit on Android
On Mar 13, 2012, at 3:35 PM, Steve Graham wrote:
Keith,
What steps did you take to learn Java, how to use Java for GUI's on Android and how to tie it together with JNI? Any recommended books or URL's?
I can't think of any particular Java resource I've used online more than others. Probably for Android the best overall resources have been the numerous example programs that come with the development kit. There are NDK examples as well. JNI to me seems a bit arcane - here are a couple of links I found helpful:
http://developer.android.com/guide/practices/design/jni.html http://android.wooyd.org/JNIExample/files/JNIExample.pdf
Regards,
Keith
Thanks, Steve
From: Keith Flower keith@keithflower.org To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Monday, March 12, 2012 12:38 PM Subject: Re: [gambit-list] Gambit on Android
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
Regards,
Keith
On Mar 12, 2012, at 10:19 AM, Steve Graham wrote:
I understand that Android apps are typically written in Java. How then is Gambit able to run on that platform? If it is possible to write GUI apps for the Android using Gambit, are there any pointers on how to get started?
Thanks, Steve _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
On Jun 2, 2012, at 3:50 PM, Steve Graham wrote:
Keith,
A few more questions.
- Can I use your Android Gambit to make a self-contained app?
A self-contained .apk? No. You might, however, consider use of the Android Native Development Toolkit to compile Gambit-produced C code for use in an Android app.
- Can I strip away the unneeded parts of Gambit before making the app? If so, how does one do that?
Thanks, Steve
Keith
From: Keith Flower keith@keithflower.org To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Wednesday, March 14, 2012 7:49 PM Subject: Re: [gambit-list] Gambit on Android
On Mar 13, 2012, at 3:35 PM, Steve Graham wrote:
Keith,
What steps did you take to learn Java, how to use Java for GUI's on Android and how to tie it together with JNI? Any recommended books or URL's?
I can't think of any particular Java resource I've used online more than others. Probably for Android the best overall resources have been the numerous example programs that come with the development kit. There are NDK examples as well. JNI to me seems a bit arcane - here are a couple of links I found helpful:
http://developer.android.com/guide/practices/design/jni.html http://android.wooyd.org/JNIExample/files/JNIExample.pdf
Regards,
Keith
Thanks, Steve
From: Keith Flower keith@keithflower.org To: Steve Graham jsgrahamus@yahoo.com Cc: Gambit List Gambit-list@iro.umontreal.ca Sent: Monday, March 12, 2012 12:38 PM Subject: Re: [gambit-list] Gambit on Android
For my little Gambit for Android app
https://play.google.com/store/apps/details?id=org.keithflower.gambit
the GUI is Java, Gambit is compiled with the Android Native Development Kit, and JNI is the bridge.
I'm testing to release a new version that incorporates all of Marc's nice recent iOS changes.
Regards,
Keith
On Mar 12, 2012, at 10:19 AM, Steve Graham wrote:
I understand that Android apps are typically written in Java. How then is Gambit able to run on that platform? If it is possible to write GUI apps for the Android using Gambit, are there any pointers on how to get started?
Thanks, Steve _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list