android - Display "Download failed" message when application is cleared from the recent apps in mobile -


i developing project using services aws s3 client (amazon web services) . view contents respective bucket. if content file, use object of transfermanager , download file. download class of aws itself. have written fragment downloading. problem facing is, when clear app recent applications in phone while download running, file isnt downloaded. how , display toast message :download failed", when application cleared recent apps? thank in advance.

you should use service this. when download in progress can show ongoing notification. nice example given here


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -