http://www.jb51.net/article/37855.htm

http://www.jb51.net/article/37855.htm_第1张图片

//删除全部
else if(id==R.id.btnDelet){
new AlertDialog.Builder(this).setTitle("删除提示框").setMessage("确认删除该数据?")
.setPositiveButton("确定", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dao.deletALL("customers");
shujuList();
}})
.setNegativeButton("取消",null)
.show();
}

你可能感兴趣的:(android,弹出提示框的使用(图文实例),android)