Uncomment these three lines:

        //TextView tv = new TextView(this);
        //tv.setText("Hello, Android");
        //setContentView(tv);

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of IceCity
Sent: Tuesday, December 15, 2009 5:40 PM
To: Android Beginners
Subject: [android-beginners] Why cant my activity show on the emulator
screen?

I use Eclipse as development tool. Here is my hello world code:

package com.example.helloandroid;

import android.app.Activity;
import android.os.Bundle;
//import android.widget.TextView;

public class HelloAndroid 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("Hello, Android");
        //setContentView(tv);
    }
}

the Hello, Android just didn't show in the emulator screen, why?
I had JDK1.6, SDK2.0, and set the enviroment path and classpath. I don't
understand why can't it show in the emulator.

--
You received this message because you are subscribed to the Google Groups
"Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.406 / Virus Database: 270.14.89/2539 - Release Date: 12/21/09
19:13:00

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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