Reputation: 2192
Could somebody tell me if it's possible to get if there are some active downloads from network? Android devices contain system application called Downloads and I think it should be possible to get if this application contains some active downloads or not. Or is there some better option to do it?
Upvotes: 2
Views: 1942
Reputation: 60681
DownloadManager
has a query()
method which you can use to
Query the download manager about downloads that have been requested.
something like this
Query query = new Query();
query.setFilterByStatus(DownloadManager.STATUS_RUNNING);
Upvotes: 3