1. Check out our app, Forums for Android! Download and leave feedback here!

N00b! plz help!

Discussion in 'Application Development' started by bluefire48, Nov 13, 2009.

  1. bluefire48

    bluefire48 New Member
    Thread Starter
    5

    Nov 13, 2009
    1
    0
    5
    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
    16

    Nov 7, 2009
    52
    3
    16

Share This Page

Loading...