1. Download our Official Android App: Forums for Android!

no display one emulator

Discussion in 'Android Apps & Games' started by uahmed, Aug 8, 2010.

  1. uahmed

    uahmed Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Aug 8, 2010

    Aug 8, 2010
    1
    0
    5
    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 .
     

    Attached Files:


    Advertisement

Share This Page

Loading...