Aspsine / MultiThreadDownload

Android Multi-Thread Download library
908 stars 285 forks source link

close downloading when kill application with os #80

Open sajadmartiny opened 8 years ago

sajadmartiny commented 8 years ago

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

salehmosleh commented 7 years ago

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.

vankhoa01 commented 7 years ago

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

Thanks a lot