case DIALOG_ID:
AlertDialog.Builder builder = new AlertDialog.Builder(this);
EditText edittext=(EditText)findViewById(R.id.name);
Appendable name=edittext.getText();
builder.setMessage(name + " Certificate saved successfully! Would like to add another Certificate?")
.setCancelable(false)
.setPositiveButton("No", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
SaveData.this.finish();
}
})
In builder.setMessage i entered a string called name when i entered the name in the emulator in the first time its coming on dialog box but when i change the name on emulator to someother name the name which i entered first is coming it is not changing to the second name
How can I do this? any help for me?
Take a String variable and store the text from the edittext ::
and then :