title: how to save state of activity
body: <p>i am new to android.i have one single <code>activity</code> with <code>main.xml</code> file. Now, i have one <code>scroll view</code> in that <code>main.xml</code> file.when i run my application in <code>portrait mode</code> and when i go to the bottom of the <code>scroll view</code> and than when i change my <code>application state</code> to the landscape mode than i go to the top of the scroll view..that means when we switch between <code>portrait</code> to <code>landscape</code> or vice versa the <code>activity</code> is recalled. so need to save the application state in <code>portrait</code> and restore in <code>landscape</code>. so any solution of it?
  thanks in advance
  Aamirkhan I.</p>