title: android dialog orientation issue
body: <p>hi i am new developer on android i have written code for display simple dialog,in this dialog i have taken edit text view.when i entered text on edit text then i have changed orientation of the scree then the value of edit text has not appearing!</p>
  
  <p>i have written code as follows</p>
  
  <pre><code>AlertDialog.Builder alert = new AlertDialog.Builder(this);  
  
  alert.setTitle("Title");  
  alert.setMessage("Message");  
  
  // Set an EditText view to get user input   
  final EditText input = new EditText(this);  
  alert.setView(input);  
  
  alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() {  
  public void onClick(DialogInterface dialog, int whichButton) {  
    String value = input.getText();  
    // Do something with value!  
    }  
  });  
  
  alert.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {  
    public void onClick(DialogInterface dialog, int whichButton) {  
      // Canceled.  
    }  
  });  
  
  alert.show(); 
  </code></pre>
  
  <p>please any one can resolve this?</p>