Need to display name in a dialogbox
<pre><code>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();
          }
        })
</code></pre>

<p>In <code>builder.setMessage</code> i entered a string called <strong>name</strong> 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</p>

<p><strong>How can I do this? any help for me?</strong></p>
