1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

no display one emulator


Last Updated:

  1. uahmed

    uahmed New Member This Topic's Starter

    Joined:
    Aug 8, 2010
    Messages:
    1
    Likes Received:
    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 .
     

    Attached Files:


    Advertisement

Share This Page

Loading...