The question is more conceptual than coding related.
I have an application with ActivityA and B.
I am calling AsyncTaskfrom ActivityA while the call is being made, I do not want to block the user showing progressdialog, so my user can freely move around the application without experiencing the boredom of waiting.
Now the request AsyncTaskor allows you to say that from ActivityA is called Service, which is responsible for downloading any data from the server. During a call, the user has changed Activityand ActivityA on the back burner.
Now that the user is free to navigate the application, he just wants to go back to ActivityA to check the download status (something allows me to say that I installed some data in mine TextView).
Now the question is, after the download is complete, while my ActivityA is still in the background, my user interface should be updated and Activitystill in the background. Thus, the user feels that he is receiving data before switching to ActivityA.
Is this possible, if so, how? Summarizing my question, can I update the user interface Activitywhile it is still in the background using AsyncTaskor Service, which I called Activityto retrieve data from the server.
, ** UI onResume(). , ?