IT_컴퓨터_코딩_개발

[예제#1] 자바-안드로이드 (Hello Android 출력)

파워유저 2012. 1. 30. 18:21

package com.Test1;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

 

public class Test1 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... Android!!!");
        setContentView(tv);

    }
}