how to set view in dialog interface? It is overriding onClick(DialogInterface dialog,int which) method but not with onClick(View v)
<pre><code>@Override public void onCreate(Bundle savedInstanceState) { Button saveButton = (Button) findViewById(R.id.saveButton); saveButton.setOnClickListener(saveButtonListener); }

public OnClickListener saveButtonListener = new OnClickListener() {

    @Override
    public void onClick(DialogInterface dialog, int which) {
        // TODO Auto-generated method stub
        if (queryEditText.getText().length() &gt; 0
                &amp;&amp; tagEditText.getText().length() &gt; 0) {
            makeTag(queryEditText.getText().toString(), tagEditText.getText().toString());
            queryEditText.setText("");
            tagEditText.setText("");

            ((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE))
                    .hideSoftInputFromWindow(tagEditText.getWindowToken(),
                            0);
        } else {
            AlertDialog.Builder builder = new AlertDialog.Builder(
                    FavoriteTwitterSearches.this);
            builder.setTitle((R.string.missingTitle));
            builder.setPositiveButton(R.string.OK, null);
            builder.setMessage(R.string.missingMessage);
            AlertDialog errorDialog = builder.create();
            errorDialog.show();
        }
    }
};
</code></pre>
