Hi, Erel --
Thanx for reply.
If you offer to transfer download from activity to service, it's not a good solution for me. First of all, because I have a lot "Wait For".
I made a small sample (attached). Run it and click "Start B" asap. Then wait.
"Wait for" after 10 seconds (timeout) activates main activity.
Meanwhile I want simply to forget about download and to kill main activity.
I attempted to change Http2Service (modified.zip). Changes are marked by *** My ***. To ignore previous http requests it's necessary to add statement
HttpUtils2Service.taskCounterMin = HttpUtils2Service.taskCounter
inside the activity.
It looks that works, but I am not sure that I released all resources. Can you look ?