Setting text to an `EditText`
<p>I'm trying to set text to an <code>EditText</code> in a custom <code>AlertDialog</code>. I'm using the following code.</p>

<pre><code>........
........    
........
........
    case R.id.edit:
        LayoutInflater factory = LayoutInflater.from(this);
        final View textEntryView = factory.inflate(R.layout.editvslayout,
                null);
        new AlertDialog.Builder(this)
                .setTitle(
                        Messages.getString("OSListActivity.52") + item_cursor.getString(1)) //$NON-NLS-1$
                .setView(textEntryView)
                .setPositiveButton(Messages.getString("OSListActivity.53"), //$NON-NLS-1$
                        new DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface dialog,
                                    int whichButton) {// TODO update path
                                // update desc
                                EditText evsname = (EditText) textEntryView
                                        .findViewById(R.id.vsname);
                                EditText evsdesc = (EditText) textEntryView
                                        .findViewById(R.id.vsdesc);
                                evsdesc.setText(folderdesc);
                                evsname.setText(foldername);
........
........    
........
........
</code></pre>

<p>However the text don't show up. Why? How can I fix this?</p>

<p>Edit FIX:</p>

<pre><code>case R.id.edit:
    LayoutInflater factory = LayoutInflater.from(this);
    final View textEntryView = factory.inflate(R.layout.editvslayout,
            null);
    final EditText evsname = (EditText) textEntryView
                .findViewById(R.id.vsname);
    final EditText evsdesc = (EditText) textEntryView
            .findViewById(R.id.vsdesc);
    evsdesc.setText(folderdesc);
    evsname.setText(foldername);
    new AlertDialog.Builder(this)
            .setTitle(
                    Messages.getString("OSListActivity.52") + item_cursor.getString(1)) //$NON-NLS-1$
            .setView(textEntryView)
            .setPositiveButton(Messages.getString("OSListActivity.53"), //$NON-NLS-1$
                    new DialogInterface.OnClickListener() {
                        public void onClick(DialogInterface dialog,
                                int whichButton) {
                            // code here
                            }
</code></pre>
