Hi I am developing the chat app for android (just private project)
- User has contact list in which he can choose the contact(lets call this activity contact_activity).
- When he chooses contact, next activity (lets call it chat_activity) opens and there he is able to write messages with other users, but when user presses back button, and restores same chat room again, everything from previous active conversation is deleted.
- I want to store and show data received for every active conversation user enters to , until he closes the conversation manually or the application is closed.
What solution is more optimal?
- To pass data from every chat_activity back to contact_activity and then pass it back when user "restores" chat_activity by creating new activity
- I heard about some magic with activity stack, so to minimize activity and then somehow restore it with old data context.
Thanks for your suggestions.