Saving a activity view onpause or on backkey
<p>I am creating a chat application for android. There are 2 activities PeoplesActivity and ChatActivity. The PeoplesActivity contains a list of users and onclicking of one user, ChatActivity, a new intent is created and I startActivity of ChatActivity.</p>

<p>Now my problem is, when a user presses backbutton from ChatActivity, he is braught back to peoplesactivity. But when I try to chat again with the user, I loose the initial chat thread. I tried creating a hash array of intents, and instead of creating a new intent on every user, I used the old intents. But yet, the chat log goes entirely missing.</p>

<p>My question is what would be the best method to save a changed state of a view as an object or something, so that when I start the activity again, I can get back the previous state of view.</p>

<p>Any help would be greatly appreciated. I am very new to android development, this might be a very silly question.</p>
