MultiThreadDownload icon indicating copy to clipboard operation
MultiThreadDownload copied to clipboard

close downloading when kill application with os

Open sajadmartiny opened this issue 9 years ago • 2 comments

why close downloading after 30 minutes when application in on pause and do not save downloaded file in sotrag

sajadmartiny avatar Aug 29 '16 10:08 sajadmartiny

please use startForeground and stopForeground in your downloader service only for one of downloads. you should run startForeground into onProgress , onConnected , onStarted of CallBack class , and for other use stopForeground . i cant explain it very good but you have to think about it. i used this way and my problem solved.

salehmosleh avatar Jan 30 '17 17:01 salehmosleh

Hi @salehmosleh Could you please help to explain more about your solution ? I really need a your help

Thanks a lot

vankhoa01 avatar Apr 08 '17 14:04 vankhoa01