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
12
votes
1 answer

Android DownloadManager: Download fails, but COLUMN_REASON only returns "placeholder"

DownloadManager appears to be the right choice for an app with lots of background downloads on a flaky mobile internet connection. Using tutorial code found on the web, the app is able to request a download from the system's DM like so: // in…
hez
  • 907
  • 1
  • 8
  • 20
11
votes
3 answers

How to receive status of download manager intent until download success or failed

Here's my problem. I'm trying to download file from my server using download manager intent via Asynctask. in my doInBackground of asynctask class, i was call download manager intent, and doinBackground will return boolean value when download finish…
user3887053
  • 125
  • 1
  • 1
  • 4
11
votes
3 answers

Retrieve file path from caught DownloadManager intent

Since Android 4.2 if a user downloads some file in the browser the DownloadManager is used. If the user clicks the 'download complete' notification an Intent is and was always launched. Before Android 4.2 the intent used to have the downloaded…
Eric Kok
  • 2,042
  • 3
  • 22
  • 32
11
votes
1 answer

Windows Forms Webbrowswer control with IDownloadManager

I'm using the Systems.Windows.Forms.Webbrowser control and need to override the download manager. I've followed the instructions here to subclass the form and override CreateWebBrowserSiteBase() /// /// Browser with download manager ///…
jimbojones
  • 682
  • 7
  • 19
11
votes
4 answers

download file to custom directory

I am using the DownloadManager to download a file to my Android device. I can choose to download to the DCIM, Downloads, Picutures folder, etc using: downloadRequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS,…
bvanvelsen - ACA Group
  • 1,741
  • 1
  • 14
  • 25
11
votes
1 answer

Setting a request body in Android's DownloadManager?

For the next step of my application, I need to add download functionality. The user chooses what they want to download and could select anything from 1 file to thousands of them if they could be bothered to select that many. I want to use Android's…
user873578
10
votes
2 answers

Supporting resumable HTTP-downloads through an ASHX handler?

We are providing downloads of our application setups through an ASHX handler in ASP.NET. A customer told us he uses some third party download manager application and that our way of providing the files currently does not support the "resume" feature…
Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
9
votes
2 answers

Android - DownloadManager / BroadcastReceiver called multiple times

I am using a DownloadManager to handle a download in my application, I would like to notify the user when the download is completed. I am using the folowing code that is working well public void downloaddownload(View v){ View v2 = (View)…
9
votes
1 answer

Control the download ordering of Download manager in android

have an use case like the following: There are several files to download e.g. A B C D E F When the downloading is started , say the A B is finished and C is downloading, I would like to interrupt the download of C and start the download of E Then,…
user782104
  • 13,233
  • 55
  • 172
  • 312
9
votes
0 answers

Why is this cursor empty?

I have for example button and when user click on it I want to find out the download history by DownloadManager, but problem is that my cursor is empty, it never goes to condition if(c.moveToFirst()), it always skip this condition. DownloadManager…
Adam
  • 2,152
  • 4
  • 35
  • 45
8
votes
4 answers

How to request multiple downloads using Download Manager in Android 2.3.3

How to request Android download manager to download multiple files at the same time. Also I would like to know each and every file download status.
Ganesh K
  • 2,623
  • 9
  • 51
  • 78
8
votes
2 answers

How store Downloaded file using DownloadManager to app's files directory allocated?

I am trying to store downloaded file using DownloadManager to app/s files directory allocated by android.For this i am using following code downloadManager=(DownloadManager)getSystemService(Context.DOWNLOAD_SERVICE); Uri uri = Uri.parse(link); …
sunil
  • 81
  • 8
8
votes
2 answers

iOS Application Background Downloading

Hey! I need to know how I can have my iOS Application start a download in the background of the application (like, have the download run in the AppDelegate file) so changing ViewControllers will not interrupt or cancel the download. I also need to…
Hank Brekke
  • 2,024
  • 2
  • 24
  • 33
8
votes
1 answer

Download manager does not work on LG devices

I try to perform downloading the file using DownloadManager. Everything works fine except LG devices. Here is my code: private void downloadFile(FileInfo fileInfo) { private DownloadManager manager = (DownloadManager) MyApp.getSingleton(). …
Nisazh
  • 306
  • 1
  • 7
8
votes
1 answer

DownloadManager sends STATUS_SUCCESSFUL for failed download

Okay, I'm downloading files (images). I want to send a message with local URI for the image when the download is completed. But 20% of time I'm getting this: 6-01 18:46:39.900: INFO/DownloadManager(412): Initiating request for download 605 06-01…
efpies
  • 3,625
  • 6
  • 34
  • 45
1
2
3
30 31