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

}

 

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *