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: a07f3367d7,4cb1f8d1c17d39a8 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Received: by 10.68.0.170 with SMTP id 10mr4452560pbf.2.1319925693125; Sat, 29 Oct 2011 15:01:33 -0700 (PDT) Path: p6ni27512pbn.0!nntp.google.com!news1.google.com!postnews.google.com!x16g2000prd.googlegroups.com!not-for-mail From: Anatoly Chernyshev Newsgroups: comp.lang.ada Subject: Re: Ada 'hello world' for Android; success! Date: Sat, 29 Oct 2011 14:59:32 -0700 (PDT) Organization: http://groups.google.com Message-ID: 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> <0EZqq.6778$rF5.1568@newsfe19.iad> NNTP-Posting-Host: 188.66.212.218 Mime-Version: 1.0 X-Trace: posting.google.com 1319925572 15699 127.0.0.1 (29 Oct 2011 21:59:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 29 Oct 2011 21:59:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x16g2000prd.googlegroups.com; posting-host=188.66.212.218; posting-account=g6PEmwoAAADhFsmVm6Epjviaw4MLU0b5 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.23) Gecko/20110920 Firefox/3.6.23 GTB7.1,gzip(gfe) Xref: news1.google.com comp.lang.ada:18758 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2011-10-29T14:59:32-07:00 List-Id: I see. So, it's all about making a nice GUI for "Hello world"? Then I'm relieved, as I commonly don't do the interface. For that simple example below, should I just compile it for jvm, and then it can be run on Android? On Oct 30, 12:47=A0am, Brad Moore wrote: > On 29/10/2011 8:46 AM, Anatoly Chernyshev wrote: > > > > > Well, I have HTC too, and might be willing to do some programming on > > it (to have some use of GPS data for instance). But your example above > > just scares me away. > > And I'm happy to have no employer to force me digging into this. I > > will not approach any Android programming in Ada until it gets back to > > the simplicity of e.g. > > > with Android.total.coverage, text_io; > > use Android.total.coverage, text_io; > > procedure Hello is > > begin > > =A0 =A0Put_Line("Hello, world!"); > > end Hello; > > > At the moment, I would opt for Python. Here is its version of "Hello, > > world": > > > import android > > droid =3D android.Android() > > droid.makeToast('Hello, World!') > > Note if you just interested in writing "Hello World" to a console for > Android, you can still use the traditional Hello world program for Ada. > > namely; > > with Text_IO; use Text_IO; > procedure Hello is > begin > =A0 =A0 =A0Put_Line("Hello, world!"); > end Hello; > > You may have to root your phone to get this to execute, but it will run > and produce the desired output in a terminal console. It wont show up > as an app however. > > Brad Moore