어플을 하나 만들고 있는데요

계속 버튼을 누르면 어플이 종료되네요;;

고수님들 도와좀주세요 ㅠㅠ

 

일단 main.xml소스입니다

 

<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/main"
    android:orientation="vertical" xmlns:android1="http://schemas.android.com/apk/res/android">

    <EditText
        android:layout_width="130dip"
        android:layout_height="50dip"
        android:layout_x="50dip"
        android:layout_y="200dip" />

    <RadioButton
        android:id="@+id/RadioButton01"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_x="42dp"
        android:layout_y="261dp"
        android:text="남성"
        android:onClick="onRadioButtonClicked"
        android:textColor="#000000" />

    <RadioButton
        android:id="@+id/RadioButton02"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_x="128dp"
        android:layout_y="259dp"
        android:text="여성"
        android:onClick="onRadioButtonClicked"
        android:textColor="#000000" />

    <ImageButton
        android1:id="@+id/imgbtn01"
        android1:layout_width="69dp"
        android1:layout_height="45dp"
        android1:layout_x="201dp"
        android1:layout_y="264dp"
        android1:onClick="mOnClick"
        android1:src="@drawable/clear" />

    <ImageButton
        android1:id="@+id/imgbtn02"
        android1:layout_width="60dp"
        android1:layout_height="45dp"
        android1:layout_x="193dp"
        android1:layout_y="202dp"
        android1:onClick="mOnClick"
        android1:src="@drawable/set" />
   
</AbsoluteLayout>

 

MainActivity.java입니다

package com.MyFuture;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.Toast;

public class MainActivity extends Activity {
    /** Called when the activity is first created. */
 
 int Sungbul;
 int r;
 EditText edit;
 int Name;
 int Check1;
 int Check2;
 
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        findViewById(R.id.imgbtn02).setOnClickListener(myButtonClick2);
        findViewById(R.id.RadioButton01).setOnClickListener(myRadioClick1);
        findViewById(R.id.RadioButton02).setOnClickListener(myRadioClick2);
    }//End of onCreate
    Button.OnClickListener myButtonClick2 = new Button.OnClickListener(){
     public void onClick(View v){
      
      
      Name = Integer.parseInt(edit.getText().toString());
      Toast.makeText(MainActivity.this, "이름이  입력되었습니다", Toast.LENGTH_SHORT).show();
      Check2 = 4;
     }
    };
  
    RadioButton.OnClickListener myRadioClick1 = new RadioButton.OnClickListener(){
     public void onClick(View v){
      Sungbul = 1;
      Check1 = 3;
      Toast.makeText(MainActivity.this, "성별이 남자로 설정되었습니다", Toast.LENGTH_SHORT).show();
     }
    };
    RadioButton.OnClickListener myRadioClick2
    = new RadioButton.OnClickListener(){
     public void onClick(View v){
      Sungbul = 2;
      Check1 = 3;
      Toast.makeText(MainActivity.this, "성별이 여자로 설정되었습니다", Toast.LENGTH_SHORT).show();
     }
    };
   

}
     

이때까지 구성한게 Edit값을 읽고 EditText의 값을 Name으로 지정하고

버튼을 클릭하게했는데

버튼을클릭하니까 바로어플이 꺼지네요

고수님들 귀찮으시곘지만 좀 도와주십시오 ㅠ