Hello World!!
public class HelloWorld extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // TextView クラスのインスタンスを作成 // コンストラクタの引数は自分自身を指定すること // 文字列を表示するためのオブジェクト TextView display = new TextView(this); // display のテキストをセット display.setText("Hello World!!"); setContentView(display); } }