title: Android. Save Instance State for Dialogs?
body: <p>I wonder what is the right way to implement this? Could anybody advice whether my solution is correct?</p>
  
  <p>So:</p>
  
  <ol>
  <li>Activity is created</li>
  <li>User clicks on button and dialog is launched (Dialog, not dialog styled activity)</li>
  <li>User opens keyboard</li>
  <li>we have onSaveInstanceState called where we save that our dialog was opened and all respective dialog input</li>
  <li>we have onRestoreInstanceState and here we check whether dialog was shown, recreate the dialog with respective input.</li>
  </ol>
  
  <p>Is it the right approach? or there is smth. that is done by Android and I am doing some redundant actions.</p>
  
  <p>Thanks</p>