Questions tagged [download-manager]

A download-manager is often used for handling long-running downloads, and might support pausing, interrupting and resuming.

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.

465 questions
6
votes
3 answers

downloading on DownloadManager and saving file in setDestinationInExternalFilesDir() is not working on Android 10

Im using DownloadManager to save the mp4 that comes from the server. Im saving the file on storage/Emulated/0/Android/data//files/.Videos. I notice that on Android 9 and android 11 is successfully downloading it. But in Android 10…
Rubick
  • 296
  • 3
  • 22
6
votes
2 answers

Android Download Manager Path Appears to be invalid sometimes

Downloading through download Manager in android sometimes does not download and throw error path appears to be invalid and it corrects itself after sometime. This is very unusual behaviour of Android Download Manager . I am downloading to external…
gautam
  • 1,701
  • 2
  • 17
  • 33
6
votes
3 answers

PHP - Protecting digital Downloads

I'm trying figure out how I can protect digital downloads in PHP. Just need some general directions so I can start my research. I don't seem to be able to find anything useful. I want to make files available for my users to download but don't want…
usnidorg
  • 65
  • 1
  • 3
6
votes
4 answers

DownloadManager download completed but file not stored

I experienced strange problem with DownloadManager, download was successful but the file was not stored. So this is my code: try { DownloadManager manager = (DownloadManager) context.getSystemService(Context.DOWNLOAD_SERVICE); …
6
votes
2 answers

Set extras for DownloadManager's BroadcastReceiver

There's a way to put extras in DownloadManager's intent registered for actionDownloadManager.ACTION_DOWNLOAD_COMPLETE (e.g. receive a boolean value set as extra in the intent)? This is how I create the request: DownloadManager.Request req = new…
6
votes
4 answers

DownloadManager doesn't start to download file

Imagine that i want to download this file (random file): http://www.analysis.im/uploads/seminar/pdf-sample.pdf This is my code: DownloadManager.Request req = new…
Giorgio Antonioli
  • 15,771
  • 10
  • 45
  • 70
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
2 answers

DownloadManager VS Own download implementation?

I'm building an application in which I need to download large files. The application needs to support: -Download big files (off course..) -Resume broken downloads -Be notified about download progress -Download in the background (when user isn't in…
dor506
  • 5,246
  • 9
  • 44
  • 79
6
votes
2 answers

DownloadManager double download

I have the following problem: Whenever I download a file with the DownloadManager it is downloaded twice (saved in the fashion "filename.extension" and "filename-1.extension"). Here is my code: public void download() { Request request = new…
BananaBuster
  • 71
  • 1
  • 6
6
votes
1 answer

Download manager - limit download speed

I need to implement a download rate limit for my file downloader application, and I've looked at the ThrottledStream class from CodeProject, but this won't work in my case since I have to be able to change the limit during a download, not just at…
marko
  • 217
  • 1
  • 4
  • 14
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
1 answer

Android WebView unable to download file on DownloadStart on UIDAI/Aadhaar Website

I am using Webview to download .zip file in my app from UIDAI website. But when DownloadListener is getting called It returns the correct data, but downloads that HTML webpage in that .zip file instead of downloading the actual file. whereas when I…
Sagar Giri
  • 2,221
  • 1
  • 10
  • 20
5
votes
2 answers

In Download manager, how to get status when its "cancel" from notification bar?

I am using download manger to download file in android. But in the case of when tap on "cancel" button from the notification bar , I am unable to get any broadcast. I have find only two broadcast…
Ankit Saini
  • 342
  • 3
  • 11
5
votes
1 answer

Download .apk with DownloadManager

Hi I'm facing a little problem here. For updates of my App (that isn't available in Play Store) I download it via DownloadManager to the Donwload directoryof the device. The .apk file is on a ftp server. After downloading I pop up a dialog if the…
Zuop
  • 584
  • 5
  • 7
  • 21
5
votes
3 answers

NSURLDomainErrorDomain error -999 when app terminate with NSURLSession

I have big trouble with NSURLSession when i'll terminate the App. I have downloaded the apple sample: https://developer.apple.com/library/ios/samplecode/SimpleBackgroundTransfer/Introduction/Intro.html on Apple reference. When i start download the…
Andrea Bozza
  • 1,374
  • 2
  • 12
  • 31