初學者問題

這是我的程式

package com.demo.android.apple;
  
import android.app.Activity;   
import android.os.Bundle;   
import android.view.View;   
import android.view.View.OnClickListener;   
import android.widget.Button;   
import android.widget.EditText;   
import android.widget.TextView;  

public class apple extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        //Listen for button clicks
       Button button=(Button)findViewById(R.id.submit);
       button.setOnClickListener(aa);
    }
    private OnClickListener aa= new OnClickListener() {
  
  public void onClick(View v) {
   // TODO Auto-generated method stub
    EditText name = (EditText)findViewById(R.id.name);
             TextView result = (TextView)findViewById(R.id.result);
             result.setText("Hello"+name);
  }
 };
}
    
   
main.XML


http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="put your name"
    />
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
   
    android:text=""
/>