• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

no display one emulator

uahmed

Lurker
dear all,

i try to make a simple hellow world program and when i run it it only shows me ANDRIOD on emulator and no other text my code is as below

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("uahmed, asd");
setContentView(tv);

setContentView(R.layout.main);
}
i am using eclipse for android development . i also attached screen shot for better view of problem .
 

Attachments

  • andriod.jpg
    andriod.jpg
    137.2 KB · Views: 58
Back
Top Bottom