N00b! plz help!


Last Updated:

  1. bluefire48

    bluefire48 New Member This Topic's Starter

    Joined:
    Nov 13, 2009
    Messages:
    1
    Likes Received:
    0
    my first android app:

    package​
    com.example.helloandroid;

    import​
    android.app.Activity;

    import​
    android.os.Bundle;

    import​
    android.widget.TextView;

    public​
    class HelloAndroid extends Activity {
    /** Called when the activity is first created. */

    @Override

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

    }

    all i get is a blinking "android...", no "Hello, Android". plz help
     

    Advertisement
  2. DaveInNYC

    DaveInNYC Well-Known Member

    Joined:
    Nov 7, 2009
    Messages:
    52
    Likes Received:
    3

Share This Page

Loading...