On Oct 5, 10:45 am, mushimi <[EMAIL PROTECTED]> wrote:
> Hi Experts,
>
> I am new to coding. Can someone help me on this? Below is my "Hello
> world" codes:
>
> package com.iqq.adc.yhtest;
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.TextView;
> public class YHHello extends Activity {
> /** Called when the activity is first created. */
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> TextView tv = new TextView(this);
> tv.setText("yh first adc for hello!");
> setContentView(R.layout.main);
> }
>
> }
>
> When I run it, Android emulator shows title "yh first adc for hello!",
> which is the text i put in tv.setText. In emulator black screen, it
> shows "Hello World, YHHello".
>
> My question is: where is "Hello World" comes from in the emulator
> screen? (since I don't put this text in my code)
>
> TIA
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---