Questions tagged [android-download-manager]

A system service that handles long-running HTTP downloads in Android

From the API page:

The download manager is a system service that handles long-running HTTP downloads. Clients may request that a URI be downloaded to a particular destination file. The download manager will conduct the download in the background, taking care of HTTP interactions and retrying downloads after failures or across connectivity changes and system reboots. Instances of this class should be obtained through getSystemService(String) by passing DOWNLOAD_SERVICE. Apps that request downloads through this API should register a broadcast receiver for ACTION_NOTIFICATION_CLICKED to appropriately handle when the user clicks on a running download in a notification or from the downloads UI. Note that the application must have the INTERNET permission to use this class.

Useful links

994 questions
6
votes
2 answers

Show progress bar while downloading using download manager

I am using download manager api for downloading large files, and i achieved it too. But the thing is, the notification of downloading progress is showing in status bar. But i want to show the notification inside the activity using Progress bar. So…
6
votes
0 answers

Android: Download Manager resume issue

I am trying to download file using Android Download Manager. As per docs: The download manager will conduct the download in the background, taking care of HTTP interactions and retrying downloads after failures or across connectivity changes and…
Nitish
  • 3,097
  • 13
  • 45
  • 80
6
votes
0 answers

Is there Pause action For Download Manager in Android?

I'm using download manager class in android to download some files . This class can add and remove a request of downloading . Is there any way to pause a specific download then resume it ? Or Is there another way to do that ? Edit: I found this way,…
Mahmoud
  • 2,683
  • 1
  • 30
  • 32
6
votes
2 answers

Android - DownloadManager - Clear old downloads in queue

I'm building an app which needs to know for concurrency reasons if all downloads are finished. A certain function is only allowed to start when all my downloads are finished. I managed to write a function which checks the queue for old…
Ron
  • 22,128
  • 31
  • 108
  • 206
6
votes
3 answers

Pause android DownloadManager

In my application I'm downloading movies from the server. Some of them are very big (4gb or more). I tried to implement my own download manager as a service and it was not quit good. On some devices the app just crashes into itself without any…
orelzion
  • 2,452
  • 4
  • 30
  • 46
5
votes
2 answers

Android 11 Download File to Download Folder doesn't work

currently I'm trying to download a File with the DownloadManager but that doesn't work, the download starts but there is no File inside the Download Folder after downloading. Thats my Code: private void downloadAddon() { try{ …
5
votes
2 answers

How to Download NTLM Authentication Protected Files

I have tried with downloading with DownloadManager apis of Android but failed to succeed. Here is my sample code which returns me Download UnSuccessful. webView.setDownloadListener(new DownloadListener() { @Override public void…
Akash
  • 681
  • 3
  • 17
5
votes
1 answer

Application is crashing on Android 10 while downloading video files using DownloadManager

App crashes while setting setDestinationInExternalPublicDir() val videoDir = Environment.getDataDirectory().absolutePath + "/applicationfiles/.tutorial" downloadRequest.setDestinationInExternalPublicDir(videoDir, videoName) E/AndroidRuntime:…
5
votes
0 answers

Android Webview download not working from UIDAI

I have a webview in my Android Application. When user goes to webview and click a link to download a file nothing happens. I am trying to download offlineaadhaaar zip by entering aadhaar number in UIDAI website. but i am not able to get the file…
AKY
  • 307
  • 2
  • 7
5
votes
1 answer

On progress seekbar notification not showing in DownloadManager android

I am downloading the file from webview. But it's not displaying the on going download notification similar to this when using DownloadManager. It just doing in background operation. How to display the status bar notification when downloading is in…
Shadow
  • 6,864
  • 6
  • 44
  • 93
5
votes
4 answers

Android N - Download Manager Notification Cancel Button

Android N has a new Cancel Button in the Download Manager Notification. I would like to excecute some code in my app to stop a progressbar when the user presses this button. If any, which method is called? Please also note that the Intent filter…
5
votes
1 answer

android.intent.action.DOWNLOAD_COMPLETE don't recived on unsuccessful download

I have reciver that registered to android.intent.action.DOWNLOAD_COMPLETE. AndroidManifest.xml
5
votes
0 answers

Android API for sampling download and upload speed

This is not really a programming question right now, and is more like a start point. I'm trying to write an Android app to take samples every few seconds and profile download and upload speed, plus some more information such as time stamp, longitude…
Tina J
  • 4,983
  • 13
  • 59
  • 125
5
votes
3 answers

How can I download the video from url in background(Android) like vimeo app

I am developing one video streaming app but I'm stuck on downloading video in Android app, I want to download the video in background exact like vimeo app, in vimeo app if you want to download the video, it will starting the video downloading in…
Sahadev
  • 1,368
  • 4
  • 18
  • 39
5
votes
1 answer

How to access the percent of Android download manager?

I'm using the Android download manager in my app. How can I access the progress of the download (like the percent of download in Notification) for showing that percent in my progress bar inside the activity? This is my method that downloads the…
majid
  • 812
  • 1
  • 12
  • 36