next.setOnClickListener(new Button.OnClickListener() {
private int count;//声明button的点击次数
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
if(group.getCheckedRadioButtonId()==-1){
new AlertDialog.Builder(FirstActivity.this)
.setTitle("你也太不老實了")
.setMessage("你想偷懶啊")
.setNeutralButton("回去做吧", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
//MainActivity.this.finish();
}
}).show();
return;
private int count;//声明button的点击次数
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
if(group.getCheckedRadioButtonId()==-1){
new AlertDialog.Builder(FirstActivity.this)
.setTitle("你也太不老實了")
.setMessage("你想偷懶啊")
.setNeutralButton("回去做吧", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
//MainActivity.this.finish();
}
}).show();
return;