Crash on orientation change
<p>I have an application when I click a button then execute <code>AsyncTask</code> in that <code>onPreExecute</code> show ProgressDialog code and in <code>onPostExecute</code> i am using <code>dialog.dismiss()</code>.</p>

<p>In my manifest file I declare <code>android:screenOrientation="portrait"</code> in <code>Activity</code>, but when I click button start <code>ProgressDialog</code> and when change screen orientation it crashes.</p>

<p>After searching, I got this link <a href="http://stackoverflow.com/questions/1111980/how-to-handle-screen-orientation-change-when-progress-dialog-and-background-threa">How to handle screen orientation change when progress dialog and background thread active?</a>. </p>

<p>But, I can't understand what I'm supposed to do.</p>
