As you no doubt knew I would, I figured out that the text I saw is the
default "sample" text produced by the SDK for a new project.  I had
failed to change "setContentView(R.layout.main);" to
"setContentView(tv);" when entering the sample application, and so I
got this default text rather than the text in my TextView.

On the bright side, it sent me looking for what "R" is, and I learned
quite a bit about the structure of an Android app as a result.

On Jul 9, 4:29 pm, DanH <[email protected]> wrote:
> OK, just getting my feet wet (40 years of programming experience with
> 15 years Java, & 6 months Qt on Nokia, but new to Android).
>
> I spared you folks the befuddlement over the "Waiting for emulator to
> start" hang (antivirus) and "Starting: Intent" hang (gotta push the
> right buttons) , and I'm actually getting output.  But what I have in
> my source file (HelloMars) is
>
> tv.setText("Hello to all Martians.  We come in peace! (Fingers
> crossed)");
>
> What I'm getting is a title "Hello to Martians!" (the app name I gave
> the project) and the line ""Hello World, HelloMars!".
>
> This I find to be bizarre.  Even if I accidentally picked up a
> HelloWorld from elsewhere (which is very unlikely), I don't see how it
> would produce that output, and it's even less likely that there's a
> "HelloMars" app floating around somewhere (especially one with the
> "org.danhicks" prefix).
>
> Any ideas??

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to