I am using okHttpUtils2 with wait for
I have 2 activities
I use wait for some http jobs in activity one. Before the jobs complete or done, user starts another activity.
My problem here is when the job completes in activity one, activity two is paused and activity one started.
I need to release or close or cancel all waiting jobs when the activity one is paused or closed.
Is there possibility to do it.
I have 2 activities
I use wait for some http jobs in activity one. Before the jobs complete or done, user starts another activity.
My problem here is when the job completes in activity one, activity two is paused and activity one started.
I need to release or close or cancel all waiting jobs when the activity one is paused or closed.
Is there possibility to do it.