<div dir="ltr"><div><div>Alright, thanks.<br></div>I'll investigate that when I have a bit more time.<br><br>Cheers,<br><br></div>P!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 8 May 2013 13:26, Fred Weigel <span dir="ltr"><<a href="mailto:fred.weigel@zylog.ca" target="_blank">fred.weigel@zylog.ca</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In Keith Flowers Gambit-C for Android, there is a "program.scm" file that<br>
contains:<br>
<br>
(define (set-page content handler)<br>
(set! event-handler handler)<br>
(set-webView-content content)<br>
(show-webView))<br>
<br>
and that's pretty much what you would do. The same file shows building and<br>
html string for the content, and adding a function for the handler.<br>
<br>
<a href="http://apps.keithflower.org/?page_id=152" target="_blank">http://apps.keithflower.org/?page_id=152</a><br>
<br>
to download the source archive.<br>
<br>
I believe Android supports html5, so I would play with the <canvas> tag and<br>
a bit of javascript (you can just dump the graphic you want into the webView<br>
content to try). Interaction will be limited so a drawing program may not<br>
be.. um.. a good thing to do, but basic stuff like editing the scripts, and<br>
pushing buttons is done is program.scm, and can be "borrowed".<br>
<br>
Anyway, you don't "post", you generate "events" using javascript embedded in<br>
the content.<br>
<br>
If your application started an "integrated" web server, you could "post" to<br>
that web server. But, I think the content/handler approach brings everything<br>
together nicely, and is preferable.<br>
<br>
FredW<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Français, English, 日本語, 한국어<br>
</div>