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