You need to research SharedPreferences due to the Activity Life cycle

On Apr 19, 6:32 pm, manish <[email protected]> wrote:
> Hi,
>
> I am very new to android development. I am trying to create a chat
> application, where I have one activity which displays, the list of
> people and when u click on a list it calls another activity called
> chatActivity, which is basically the chat screen view.
> Now, the problem I am facing is: When a user clicks on a list and
> starts a chat, types some message and sends it, receives some message,
> and then he goes back to the list, and then comes back again to the
> chat screen. he looses all the previous messages, that he had typed. I
> understand that it happens cause I startActivity again, so I tried
> using a array of intents. But then again the same problem persists.
> What would be the best way to store this chat data in a non persistent
> way that I can give back to the user if, he comes back to same screen.
>
> I hope I have been clear enough with my problem. Any help would be
> greatly appreciated.
>
> Thanks,
> Manish

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to