Pregunta

I want to create a custom DownloadManager class in which I want to modify the notification sent by the class during download and other stuff. Is it possible to do so or am I getting crazy? My main motive is to show my custom download notification even I close the app. Currently I am using DownloadManager class with notification disabled and then I run a timer to continuously monitor it and send my custom notification. But when I close my app, the thread stops(but DownloadManager still runs) and notification hangs there. I just want my custom notification to keep updating even after the app closes (as DownloadManager is still running).

I even try making a broadcast in the app and register in the manifest, but in android 3.1+ devices, the receiver don't receive broadcast after app is closed. So, I am searching a solution for this. Hope I explained well :)

¿Fue útil?

Solución

Download Manager is system service, so you can use it but not really alter the way it works by extending anything. If you want file download to behave different way, you have to handle file downloads yourself.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top