//패키지 선언(패키지 이름 = com.helloworld)
package com.helloworld;
// Import 문
import android.widget.TextView; //(1)
import android.app.Activity;
import android.os.Bundle;
// class 선언
public class helloandroid extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView hello = new TextView(this); // (2)
hello.setText("Hello, Android!!!\n"+
"안녕, 안드로이드 ㅇㅅㅇ/");
setContentView(hello);
}
}
//튜토리얼과 어플 아이콘 제작방법은 나중에
'Programming > java/Android' 카테고리의 다른 글
짧고 간결하고 간단한 팁... (0) | 2011.02.27 |
---|---|
안녕, 안드로이드 - 자바/안드로이드 소스 (0) | 2011.02.18 |
안드로이드폰에게 인사를... 안녕, 안드로이드 ㅇㅅㅇ/?? (0) | 2011.02.18 |
안드로이드 개발환경 구축하기 (0) | 2011.02.17 |