how to retain the state of activity in android
<p>How to retain state of activity in android.I have two layout for portrait and landscape in layout and layout-land .i am loading value from service at the time i am showing progress dialog .if loaded user rotate device to landscape at the time also loading how to avoid that .user typed content in webview that also refreshed how to avoid that can anybody provide example?</p>

<p>Thanks</p>
