maintaing of previous state data
<ol>
<li>Create two activities ActFirst, ActSecond.</li>
<li>Create an editbox and a button(text: "goto ActSecond") in the ActFirst. </li>
<li>Create a button in ActSecond.</li>
<li>In ActFirst, write something in the edit box and click on button should go to second activity. and in second activity on click of the button should come back to first activity. </li>
</ol>

<p>The problem is whatever you have provided in the edit box inside ActFirst should remain same when it comes back.</p>

<p>Use only activity lifecycle and find the way how you can persist it. No preferences or static linking. </p>
