Android Question Prevent HttpUtils2 JobDone from Opening an inactive activity

base64

Member
Licensed User
Longtime User
Let's say Activity A starts an HttpJob, then before the job completes (JobDone is not yet called) the user moves on to another activity (Activity B). When the user is still in Activity B, Activity A's job completes (its JobDone is called). And what happens is Activity A is launched, interrupting user's on-going activity on Activity B.

Is there a way to make the Activity A's JobDone call not open Activity A if it's not currently open -- other than using Activity.Finish on Activity A before moving on to Activity B?

Thank you.
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top