Android的HelloWorld程序

package com.china.hello;

 

import android.app.Activity;

import android.os.Bundle;

import android.widget.TextView;

 

public class HelloChina extends Activity {

    /** Called when the activity is first created. */

    @Override

    public void onCreate(Bundle saveInstanceState) {

        super.onCreate(saveInstanceState);

        //setContentView(R.layout.main);

        TextView tv = new TextView(this);

        tv.setText("helloWorld");

        setContentView(tv);

    }

}

posted on 2011-05-21 20:30  齐威王  阅读(326)  评论(0编辑  收藏  举报

导航