From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5059e1c3870d4dc8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.22.33 with SMTP id a1mr1384045pbf.15.1315574163228; Fri, 09 Sep 2011 06:16:03 -0700 (PDT) Path: m9ni2577pbd.0!nntp.google.com!news1.google.com!goblin3!goblin.stu.neva.ru!news.cgarbs.de!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Ada on Android? Date: Fri, 9 Sep 2011 13:16:02 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <82zkiihpjo.fsf@stephe-leake.org> <657d70d1-2df5-4436-a44c-c97228daff27@l4g2000vbv.googlegroups.com> <82pqjeh3mq.fsf@stephe-leake.org> <82fwk7khyn.fsf@stephe-leake.org> Mime-Version: 1.0 Injection-Date: Fri, 9 Sep 2011 13:16:02 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="fYLei64FcmMN10J2waI8+Q"; logging-data="26139"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Lq/eXRWRUIBdRLzXr3Uiren01AyW9VWY=" User-Agent: Pan/0.134 (Wait for Me; GIT cb32159 master) Cancel-Lock: sha1:4lJNu68cA6Vj5c9fzJoffIALsnw= Xref: news1.google.com comp.lang.ada:17912 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2011-09-09T13:16:02+00:00 List-Id: On Wed, 07 Sep 2011 20:15:12 -0400, Stephen Leake wrote: > Brian Drummond writes: > Ada is supposed to be able to target the JVM; also being able to target > ARM is an orthogonal issue. Targeting the ARM would be useful for > compiling a new cryptographic library, for example. Totally unnecessary > for building a music player. Not necessary. Perhaps sufficient if you can bind to the API from native code and write native code callbacks (you can from C/C++ in Android 2.3, so presumably also Ada). I am not suggestion there is anything wrong in targetting the JVM in Ada! However, if that turns out to be problematic, native code could offer an alternative approach. Ideally, both will work. > I'm don't understand what "SDK GUI Builder" you are talking about; I > used Eclipse and the Android toolkit, as the Hello World tutorial says. That is the one I meant. (I don't know how you installed it; for me, it came with the SDK. But it's some sort of Eclipse plugin) > It is possible to do without the GUI builder by writing either Java or > Ada code that constructs the GUI; we have the same choice in GtkAda. I'm > going with the recommended approach to make sure I know what its > advantages are before I give up on it. Interesting. As far as I could see, we have to use XML (or the builder) to control layout. If you can do that in [Java/Ada] instead, that's very good news! I missed that. Any references to it, or sample projects? >> A GTKAda binding to that mess would be nice ... (though probably >> difficult to impossible) > > Why would that be nice? Just commonality with other platforms. I hear you about the mess in GTK underneath! If we can develop for Android and use the same product on other platforms (not just Windows), that would also be nice. Nicer, if the underlying windowing stuff is cleaner. >> I'll report if/when I have a HelloWorld running. > > I'm talking about the full Android windowing Hello World at > http://developer.android.com/resources/tutorials/hello-world.html. > _not_ just Ada.Text_IO.Put_line. So am I; or rather, the exact equivalent "hello-jni" example from http://developer.android.com/sdk/ndk/overview.html#samples This ought to work on Android 1.5 and above. Then proceeding to the "native activity" and other samples, which will require 2.3. For Ada.Text_IO.Put_line we are there already. > You are way overly optimistic. But that's a necessary attitude in this > business :). Thanks! - Brian