Hello there!
I have a chat Activity and a service for it.
The Activity shows the messages and sends new ones.
The service check online if there is new messages and, in that case, shows them in the Chat Activity calling a function in the activity. The httpjob execution is in the chat but the "jobdone" method is in the Activity.
My problem is... What if the service executes the httpjob but the activity isn't active when the http response arrives?
Thanks for your answers and your time.
I have a chat Activity and a service for it.
The Activity shows the messages and sends new ones.
The service check online if there is new messages and, in that case, shows them in the Chat Activity calling a function in the activity. The httpjob execution is in the chat but the "jobdone" method is in the Activity.
My problem is... What if the service executes the httpjob but the activity isn't active when the http response arrives?
Thanks for your answers and your time.