hi Mushimi,
I think you have written the code twice, Run it the first Time with the
default "Hello World" then changed the text.
I am not sure of this but i think there is cache or sth that takes time to
refresh because it happened with me too but i had changed the widget itself
but still hello world appears until i restarted the emulator.
so restart yours and wait a minute or so and it may work.
I hope this helps.
On Sun, Oct 5, 2008 at 4: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
>
> >
>
--
H Farahat
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---