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

  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;
   }


  }
  }
  
 }