storing the state of an activity at intermediate level of processing activity before firing intent
<p>my first activity generates a popup window. when i press a button on this popup it alters the data on it and an intent here takes me to another activity.</p>

<p>when i press back button in new activity. i get the last configuration of previous activity thats with changed data on my popup.</p>

<p>Is there anyway i can store my previous activity state still only generating popup. I am newbie into android.</p>

<p>below is a structure of what im trying to depict</p>

<pre><code>Activity1
{

popup()
{
    // i want activity stack to store its state till here
  buttonlistener()
   {
        // make some changes in text

        intent  which leads to new activity
   }

 }


 }
</code></pre>
