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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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 Path: g2news1.google.com!postnews.google.com!l4g2000vbv.googlegroups.com!not-for-mail From: onox Newsgroups: comp.lang.ada Subject: Re: Ada on Android? Date: Mon, 5 Sep 2011 13:15:52 -0700 (PDT) Organization: http://groups.google.com Message-ID: <657d70d1-2df5-4436-a44c-c97228daff27@l4g2000vbv.googlegroups.com> References: <82zkiihpjo.fsf@stephe-leake.org> NNTP-Posting-Host: 82.139.123.174 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1315253753 21016 127.0.0.1 (5 Sep 2011 20:15:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 5 Sep 2011 20:15:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l4g2000vbv.googlegroups.com; posting-host=82.139.123.174; posting-account=BtkjvAoAAADwEquGb07eykXfyiDMOxfl User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HNKRUAELSC X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.109 Safari/535.1,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20851 Date: 2011-09-05T13:15:52-07:00 List-Id: On Sep 5, 7:22=A0pm, Stephen Leake wrote: > I managed to modify an open source music player written in Java to do > what I want on my new Android. > > Now I want to make it even better, but I'm already tired of saying "I > wish this was in Ada!". > > So I install GNAT GPL 2011 for jvm target, and ran jvm2ada on > android.jar (which generated about 2,900 files!, after some hiccups). > > Then I tried building the Java hello world tutorial translated to Ada. > The compiler reported several bugs in the generated code; some obvious > errors (duplicate identifiers) some apparently compiler bugs. After > finding work-arounds for all of those, I finally hit a bug box that I > don't see how to fix. > > I'm doing this at home, so I can't use my work AdaCore support contract > to get help. > > Has anyone here done any Ada for Android? > > I could compromise and write the GUI and Android API-intensive stuff in > Java and the rest in Ada, but for this program, most of it is GUI or > Android-intensive (there are a _lot_ of very nice facilities in the > Android API). So that would not gain much. > > -- > -- Stephe You might be interested in checking the GNATDroid (Android 2.3+) cross- compiler for FreeBSD at http://www.dragonlace.net/