I have an activity B that is generated from an activity A. In the activity B, i have a button that will send me to the activity C. Inside the Activity C i will run a service and inside that service i want to go back to activity B.
So it would be A->B->C -> service->B.
That B activity is like a chat/history of apk transfer and right now i am still not using a database (later i will change the code for that, i can't right now).
The data that will be shown in Activity B, comes from that service ( i will send apk files) and after the files were sent i want to retrieve to the activity B the name of the app that i sent, so that i can display it on that chat/history.
If inside the service i create a new intent that will run the activity B, it will always start the activity B again, instead of "keeping" the old information that was already there.
How do you guys think i should do this ?
I know that there is a flag that will call the activity B that is already in the stack (and that when that happens it goes to the onResume() method (right?) ), but are there any alternatives ?
What is the best way to do this ?
Thank you guys ! Sorry if it was too confusing.