title: Reset an Android Dialog
body: <p>I found plenty of topics on how to save states of a dialog, for instance using Bundle instances.
  However, I can't seem to find how to "properly" reset a dialog.</p>
  
  <p>Consider this sample custom dialog (the XML layout carries an EditText with ID "input_text"):</p>
  
  <pre><code>public class CustomDialog extends Dialog {
    public CustomDialog (Context context) { super (context); }
  
    protected onCreate (Bundle savedInstanceState) {
      super.onCreate (savedInstanceState);
  
      setContentView(R.layout.input_query);
      EditText txt = (EditText) findViewById(R.id.input_text);
  
      // Consider that I'm declaring here the use of listeners
      // in order to retrieve input text.
    }
  }
  </code></pre>
  
  <p>I'm popping up this dialog when a button is clicked in the main Activity. The second time this action occurs, my EditText contains the input from the previous instance.</p>
  
  <p>Now, I know I can reset the content of this EditText, but I'm wondering if there is a common, already existant method to do this, dialog-wide. For instance if I have a more complex dialog, I want that it has "default" values each time this object is instantiated. I thought removing the call to<code>super.onCreate(savedInstanceState);</code> could do the trick, but it does not.</p>
  
  <p>Sorry if this is a silly question (or if already addressed... I did not find it)... Any help is appreciated. Thanks a lot!</p>