box-o-sand/oldstuff/PracticingAndroid/HelloAndroid/src/com/mbh/HelloAndroid.java

17 lines
433 B
Java
Raw Normal View History

2012-02-20 04:53:58 +00:00
package com.mbh;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
2012-02-20 04:53:58 +00:00
public class HelloAndroid extends Activity {
2012-02-20 04:53:58 +00:00
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
2012-02-20 04:53:58 +00:00
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
2012-02-20 04:53:58 +00:00
}
}