Hi Experts,

I am new to coding. Appreciate your kind help on this simple stuff.
Below is my "hello" 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, emulator shows title "yh first adc for hello!", which
is from tv.setText, and shows in black screen "Hello World, YHHello".

My question is: where is the "Hello World" coming from? (it is not in
my codes above).

TIA

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to