Hey sorry this might seem kinda dumb but just recently I decided to
try out programing for Android and wanted to start with simple hello
world. My code is all correct and compiles correctly but when the
emulator comes up only the word ANDROID stays on the screen and I have
no idea why. Does anyone know what my problem is?

-Peter


Code:
 package com.example.helloandroid;

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

public class HelloAndroid extends Activity {

   @Override
   public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       TextView tv = new TextView(this);
       tv.setText("Hello, Android");
       setContentView(tv);
   }
}



-- 
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