读书人

Google Android之Hello,andylee1988

发布时间: 2012-08-24 10:00:21 作者: rapoo

Google Android之Hello,andylee1988!
package org.andylee1988;

?

import android.app.Activity;

import android.os.Bundle;

import android.widget.TextView;

?

public class HelloAndylee1988 extends Activity {

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

??? @Override

??? public void onCreate(Bundle savedInstanceState) {

??????? super.onCreate(savedInstanceState);

??????? //setContentView(R.layout.main);

??????? TextView tv = new TextView(this);

??????? tv.setText("Hello,andylee1988!");

??????? setContentView(tv);

??? }

}





点击run,选择Android Application,如图:
Google Android之Hello,andylee1988

读书人网 >Android

热点推荐