• 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
Aug 8, 2010
1
0
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: 52

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones