package org.hello; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; import android.view.View; public class HelloActivity extends Activity { private TextView textview; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mylayout); textview = (TextView) findViewById(R.id.mytextview); } @Override public void onStart() { super.onStart(); } public void sayHello(View view) { textview.setText("Hello World!"); } }