android 彈出提示框

 

 

//刪除全部

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();

}

 

You May Also Like