안녕하세요
 
질문이 있습니다.
 
먼저 라디오버튼 다이얼로그를 뛰운다음 첫번째 라디오 버튼을 클릭하면 xml 파일을 읽어와
 
새로운 다이얼로그를 뛰우게 됩니다
 
거기엔 에디트텍스트가 있는데
 
거기 입력한 값을 확인 버튼을 누름과 동시에 String 변수에 넣을려고 합니다.
이 String 변수는 전역변수 역활로 onCreate 함수 실행전에 선언해두었습니다.
 
그런데 자꾸 null 포인터를 반환한다고 에러가 뜨고 종료 되어버리네요 ㅠㅠ
 
 private void showAlerDialog_timer_rdio() {
  // TODO Auto-generated method stub
  
 // final ScrollView linear = (ScrollView)View.inflate(Setup_Main2.this, R.layout.timer_radiobutton, null);
  
    
  
  AlertDialog.Builder alt_bld = new AlertDialog.Builder(Setup_Main2.this);
  alt_bld.setTitle("시간설정");
  alt_bld.setSingleChoiceItems(R.array.test, 0, new DialogInterface.OnClickListener() {
   
   public void onClick(DialogInterface dialog, int which) {
    // TODO Auto-generated method stub
    count = which;
    
    if(count == 0)
    {
     final LinearLayout text_intput_linear = (LinearLayout)View.inflate(Setup_Main2.this, R.layout.timer_input, null);
     
     final EditText timer_edit = (EditText) findViewById(R.id.timer_input_edit);
     
     
     AlertDialog.Builder input_alt = new AlertDialog.Builder(Setup_Main2.this);
     input_alt.setTitle("직접입력");
     input_alt.setView(text_intput_linear);
         
     input_alt.setPositiveButton("확인", new DialogInterface.OnClickListener() {
      
      public void onClick(DialogInterface dialog, int which) {
       // TODO Auto-generated method stub
       String str = timer_edit.getText().toString();
       edit_text_string = str;
// 바로 이부분입니다.
      }
     }).setNegativeButton("닫기", null).show();
     
    }
    
    
    
    Toast.makeText(Setup_Main2.this, "선택 = " + which,
           Toast.LENGTH_SHORT).show();
   }
  }).setPositiveButton("설정", new DialogInterface.OnClickListener() {
   
   public void onClick(DialogInterface dialog, int which) {
    // TODO Auto-generated method stub
        
    switch(count)
    {
     case 0 : 
      test_pref(edit_text_string );
      break;
     case 1 :
      test_pref("10초");
      break;
     case 2 :
      test_pref("20초");
      break;
     case 3 :
      test_pref("30초");
      break;
     case 4 :
      test_pref("40초");
      break;
     case 5 :
      test_pref("50초");
      break;
    }
   }
 
 
뭐가 문제인지 좀 확인좀 해주세요 ..ㅠㅠ 해결방법은 무엇일까요? ㅠㅠ
 
부탁드리겠습니다. ㅠㅠ