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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,4cb1f8d1c17d39a8 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.16.35 with SMTP id c3mr9379081pbd.6.1319995969951; Sun, 30 Oct 2011 10:32:49 -0700 (PDT) Path: p6ni36132pbn.0!nntp.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe04.iad.POSTED!00000000!not-for-mail From: Brad Moore User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada 'hello world' for Android; success! References: <8239efcjuw.fsf@stephe-leake.org> <98ca5430-aa52-4e39-b789-70d0dd6adb46@d33g2000prb.googlegroups.com> <824nyrq5p6.fsf@stephe-leake.org> <5e4cbab8-b375-4995-bf1a-e264b307a279@d37g2000prg.googlegroups.com> <82r51uoih7.fsf@stephe-leake.org> In-Reply-To: <82r51uoih7.fsf@stephe-leake.org> Message-ID: NNTP-Posting-Host: 184.64.75.84 X-Complaints-To: internet.abuse@sjrb.ca X-Trace: newsfe04.iad 1319995925 184.64.75.84 (Sun, 30 Oct 2011 17:32:05 UTC) NNTP-Posting-Date: Sun, 30 Oct 2011 17:32:05 UTC Date: Sun, 30 Oct 2011 11:32:02 -0600 Xref: news1.google.com comp.lang.ada:18765 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2011-10-30T11:32:02-06:00 List-Id: On 30/10/2011 4:56 AM, Stephen Leake wrote: > The biggest problem I have with the current Android documentation is > that it does not document threading behavior, even though it has > multiple threads, and "callbacks" that must operate across threads. > Which means it is impossible to avoid deadlocks and race conditions. As > part of my Ada on Android development work, I'll be attempting to > reverse engineer and document the threading behavior of the various > features I use. > doing useful stuff with a solid multi-tasking GUI > is not trivial, so you need complex structures to make it work. From > what I have seen so far, the Android GUI framework is easier to use, yet > just as powerful, as GtkAda. > > It will be interesting to see if Ada tasks are useful with Android. Just to clarify, Ada tasks are definitely useful with Android, the Paraffin release uses Ada tasks which interact with protected objects to provide parallelism with dual core Android devices. Ada tasks work well with Ada tasks. I believe what you are wondering about is whether Ada tasks play nicely with Java threads, (threads that perhaps get created via GUI API calls.) I haven't tried that, though I suspect they can interact the same that they do on Linux, through GNAT specific packages such as via the GNAT.Threads package. I haven't experimented yet with Ada-Java threading. It would be good to see an Ada GUI app such as your music player project available for Android.