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.205.116.5 with SMTP id fg5mr1004398bkc.3.1319921368356; Sat, 29 Oct 2011 13:49:28 -0700 (PDT) Path: l23ni18247bkv.0!nntp.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe19.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> In-Reply-To: <5e4cbab8-b375-4995-bf1a-e264b307a279@d37g2000prg.googlegroups.com> Message-ID: <0EZqq.6778$rF5.1568@newsfe19.iad> NNTP-Posting-Host: 184.64.75.84 X-Complaints-To: internet.abuse@sjrb.ca X-Trace: newsfe19.iad 1319921276 184.64.75.84 (Sat, 29 Oct 2011 20:47:56 UTC) NNTP-Posting-Date: Sat, 29 Oct 2011 20:47:56 UTC Date: Sat, 29 Oct 2011 14:47:55 -0600 Xref: news1.google.com comp.lang.ada:18754 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2011-10-29T14:47:55-06:00 List-Id: 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 > Put_Line("Hello, world!"); > end Hello; > > At the moment, I would opt for Python. Here is its version of "Hello, > world": > > import android > droid = 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 Put_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