Hi, First, as a general rule, when something does not happen on a device or emulator, please open the Window > Perspective > DDMS Perspective and look in the logcat view: this is where the logs from the device or emulator show and most of the time they will give you the exact error that happened.
Now in your case it seems that you commented out the original setContentView to add another view instead. Does it work with the original code? R/ On Sun, Jun 7, 2009 at 3:16 AM, Fahd<[email protected]> wrote: > > Hi All, > > I am following the hello world example and when I run it through > eclipse, the emulater starts showing android... > then it comes in to the system and asks me to press menu to unlock. > When I do it, it justs unlocks but there no helloworld or application > window, just the normal android desktop!!!!! Am I missing somthing?? > > Following is the code I am running (which is the copy of the example) > > 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); > //setContentView(R.layout.main); > } > } > > Why isnt the helloworld window coming?? Any help plss > > Fahd > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

