안드로이드 개발 질문/답변
(글 수 45,052)
Button btn1=(Button)findViewById(R.id.call);
btn1.setOnClickListener(new Button.OnClickListener(){
public void onClick(View v){
if(result6 == result4 + result5){
switch(result6){
case(2):
text =(TextView)findViewById(R.id.result3);
text.setText("제발 성공해라");
break;
case(1):
text = (TextView)findViewById(R.id.result3);
text.setText("꼭 제발 성공해라");
break;
case(0):
AlertDialog.Builder yh = new AlertDialog.Builder(DialogButton.this);
yh.setTitle("설문결과");
yh.setMessage("왜 이것만 성공되나");
yh.setIcon(R.drawable.icon);
yh.setPositiveButton("닫기", null);
yh.show();
break;
}
}
}
});
DialogButton cannot be resolved to a type
이러한 문제가 나옵니다;
제가 무언가 잘못 된것이 있나요?
답변 부탁드립니다..ㅠ.ㅠ
btn1.setOnClickListener(new Button.OnClickListener(){
public void onClick(View v){
if(result6 == result4 + result5){
switch(result6){
case(2):
text =(TextView)findViewById(R.id.result3);
text.setText("제발 성공해라");
break;
case(1):
text = (TextView)findViewById(R.id.result3);
text.setText("꼭 제발 성공해라");
break;
case(0):
AlertDialog.Builder yh = new AlertDialog.Builder(DialogButton.this);
yh.setTitle("설문결과");
yh.setMessage("왜 이것만 성공되나");
yh.setIcon(R.drawable.icon);
yh.setPositiveButton("닫기", null);
yh.show();
break;
}
}
}
});
DialogButton cannot be resolved to a type
이러한 문제가 나옵니다;
제가 무언가 잘못 된것이 있나요?
답변 부탁드립니다..ㅠ.ㅠ



