title: Android dialoginterface get inner dialog views
body: <p>I've a simple program to show a dialog, with a edittext view in it, and listen to positive/negative buttons, to perform a custom action in each (read that edittext and save its content to an activity variable).</p>
  
  <p>The problem arises when I can't see any way to recover my current dialog from dialog interface (and then, I can't recover any view within dialog).</p>
  
  <p>Probably it's a noob question, but after some google searches, I've no one answer to it.</p>
  
  <p>My code is the following</p>
  
  <pre><code>LayoutInflater li = LayoutInflater.from(this);
  View myView = li.inflate(R.layout.my_layout, null);
  
  AlertDialog.Builder cDialog = new AlertDialog.Builder(this);
  cDialog.setView(myView);
  cDialog.setPositiveButton(R.string.start_download, new   DialogInterface.OnClickListener() {
    @Override
    public void onClick(DialogInterface dialog, int which) {
      //here the code to retrieve dialog
    }
  });
  cDialog.create();
  </code></pre>
  
  <p>Any clue about where can I find that?</p>