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
1
vote
0 answers

Android DownloadManager/DOWNLOAD_SERVICE: how do you decode content-encoding: gzip?

I can't seem to be able to get DownloadManager in Java/Android properly decode gzip files (in this case from S3 bucket). Same link decodes properly when downloading from, say, Chrome, which seems to use DownloadManager as well. There doesn't seem…
1
vote
1 answer

DownloadManager in Citrix environment isn't working

I'm working on an app that's only used within a Citrix environment and need to add the DownloadManager to it. Everything works great until I try testing the app within a Citrix environment. Downloads seem to kick off and appear to finish but my…
Ifrit
  • 6,791
  • 8
  • 50
  • 79
1
vote
0 answers

How to download files using Android DownloadManager without knowing the filename?

I want to download the file from the URL such as - mDownloadUrl = "https://onedrive.live.com/download?cid=xxx"; The problem is that i do not know the filename and content type. It can be pdf, doc, mp3 etc. If i use DownloadManager.Request request =…
1
vote
0 answers

Android Download Manager fails to download on JellyBean API 16 and below

Using the DownloadManager, I am trying to download files from my app but it is failing to download any files. This issue I have recreated on multiple devices all API 16 or below. Anything above that API works fine. What happens is: I click the file…
The Nomad
  • 7,155
  • 14
  • 65
  • 100
1
vote
0 answers

Android DownloadManager failing on HTTP 406 error

I am using DownloadManager to download video file from internet to Environment.DIRECTORY_MOVIES. File is being downloaded, and when the download finishes I get ACTION_DOWNLOAD_COMPLETE broadcast. But when I check download status there i get…
1
vote
0 answers

Does DownloadManager neither reattempt nor broadcast failures on insufficient space?

I was looking through the AOSP code in KitKat and noticed this code in com.android.providers.downloads.DownloadThread: /** * Stores information about the completed download, and notifies the initiating application. */ private void…
satur9nine
  • 13,927
  • 5
  • 80
  • 123
1
vote
0 answers

Sending an existing file to download manager Android

Good morning, im generating a file on my android app and i need the user to see where this file is saved. I thought to send the file to download manager as if he had been downloaded. Its possible? Thanks.
João Neto
  • 111
  • 4
1
vote
1 answer

Visual Studio 2013 Update 4 offline installer for Download Accelerator plus

I got the following two links for update 2 and 3, from SO question VS 2013 Update 2 offline ISO - http://go.microsoft.com/fwlink/?LinkId=393220 VS 2013 Update 3 offline ISO - http://go.microsoft.com/fwlink/?LinkId=403041 But I need for Update 4. Can…
VivekDev
  • 20,868
  • 27
  • 132
  • 202
1
vote
0 answers

Android: I cannot download with my own app browser

As shown in the attached image below, my Android application refuses to react to click on the "Browse" button. I mean : When the App is not installed, it downloads files without any problem. But, when the App is installed (it takes control…
Aly Baba
  • 11
  • 5
1
vote
0 answers

Opening a file downloaded with DownloadManager

I'm trying to open a file downloaded using DownloadManager. I'm getting the local filename after download is finished. After that I suggest my user to open file (or decline). The method I use for opening file is: private void openFile(String…
1
vote
0 answers

How to Pause/Resume downloads in Android programming?

I really want to use android.app.DownloadManager class, also I want to add Pause/Resume ability to my android app. as google said on developer Guide : The download manager (android.app.DownloadManager) will conduct the download in the background,…
1
vote
1 answer

Retain file server's original creation / modified dates of a file when downloading it from a website

How can I keep the original 'Created' and 'Modified' date and timestamps of a file when I download it from a website? When I download a file from a website, the 'Created' and 'Modified' dates are taken at the time of the download. I want to have…
James
  • 303
  • 3
  • 10
1
vote
0 answers

Image downloading issue objective c

I am a Objective c programmer, I am facing a problem while downloading a handsome amount of images from server into the app. At the moment I am using straight forward strategy i.e. Queue up the images alongside main queue. Images are almost 2000…
Muhammad Burhan
  • 145
  • 1
  • 2
  • 11
1
vote
2 answers

Android DownloadManager remove() - how to determine when the remove() operation finishes?

Is there an easy mechanism to determine when a DownloadManager remove() has completed, as it appears to be partially asynchronous. The function returns almost instantaneously with a count of the entries in the Download table it's deleted, but the…
arober11
  • 1,969
  • 18
  • 31
1
vote
3 answers

Download Manager Unable to Resume Download in case of Internet Disconnection and System Reboot

I have created a simple application which is supposed to download large zip files. After some R&D I came to the conclusion that I have to use Download Manager to achieve this. I want the download to resume automatically if the device is restarted or…
kittu88
  • 2,451
  • 5
  • 40
  • 80