Closed maxi182Eman closed 6 years ago
So in which case you want to send a brodcast? Just in your app?
Hi, Yes, when the dowload is complete, and the app is not in the foreground, onRecive method should be called and able to grab the downloadReferenceId. Thanks
Just use sendBroadcast
in onComplete.
Hi, but does your Oncomplete method will be called when the download is complete while the app is close?
You should handle this in service by yourself. If you want to know how to keep app keeps alive in background, you should check Android's tutorial.
Hi, I am needing to bind your DownloadManager to a system brodcast, so onRecive should be called when the download is complete, how can I achive this?
thanks