public void onClickUpdateData(View view) { helper.open(); if (helper.updateRecord(getId(), getName(), getPhone(), getEmail())) { Toast.makeText(this, "Update was successfull", Toast.LENGTH_SHORT).show(); } else { Toast.makeText(this, "Update failed", Toast.LENGTH_SHORT).show(); } }