1 package com
.example
.helloandroid
;
3 import android
.app
.Activity
;
4 import android
.os
.Bundle
;
5 import android
.widget
.TextView
;
6 import android
.view
.View
;
9 public class HelloAndroid
extends Activity
{
10 private TextView label
;
12 /** Called when the activity is first created. */
14 public void onCreate(Bundle savedInstanceState
) {
15 super.onCreate(savedInstanceState
);
16 setContentView(R
.layout
.main
);
17 label
= (TextView
) findViewById(R
.id
.TextView01
);
21 public void onButton1Click(View view
) {
22 switch (view
.getId()) {
24 label
.setText("selam");