if(toggleButton1.isChecked()&&toggleButton2.isChecked())
{
Intent it = new Intent(answer.this,next.class);
startActivity(it);
}
else
{
Intent abc = new Intent(answer.this,wrong.class);
startActivity(abc);
}
이런식으로 구현을 했는데
토글버튼1,2랑 같이 다른버튼이 같이 눌러졌을경우도 else가 아닌 if문을 따라가더라구요
어떻게 해야 1,2를 빼고 다른것이 같이 눌러졌을때 else문으로 가게 할 수 있나요?