라디오버튼을 그룹으로 만들어서 사용하려고 합니다.

전체적으로는 오류가 없습니다. 그런데 오류없이 작동은 하지만. 작동하면서

  if(reservation.but[i] == reservation.butm){
  if(checkedid == R.id.radioButton1)
   {
이부분은 그냥 무시하는듯.. 기능 수행을 안합니다. 뭐가문제인지. 도와주세요 ㅜㅜ 

OnClickListener libtwo = new OnClickListener(){
   public void onClick(View v){

onCheckedChanged1(rg, RESULT_OK);

}

};

 

 public void onCheckedChanged1(RadioGroup group, int checkedId){
  

   for(int i = 0; i<25; i++){
  if(reservation.but[i] == reservation.butm){


   if(checkedid == R.id.radioButton1)
   {
    no[i].stop = 1;
   }
   else if(checkedid == R.id.radioButton2)
   {
    no[i].stop = 2;
   }
   else if(checkedid == R.id.radioButton3)
   {
    no[i].stop = 3;
   }
   else if(checkedid == R.id.radioButton4)
   {
    no[i].stop = 4;
   }


  }
  }
  
 }