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

How to make a DownloadManager with pause/resume and progress in notification

"Activity A" send url and file name to DownloadManager that start download and show progress in notification, when progress notification is clicked open "Activity B" with list of downloads with all downloads in progress and finished. Sorry my…
Gidex
  • 31
  • 3
2
votes
3 answers

Send a variable from a "Activity" to "BroadcastReceiver."

I need to send a variable from an Activity to a BroadcastReceiver registered on Manifest. My Scenario: I have a file list that can be downloaded by user and when he clicks the app calls DownloadManager, and put a flag “PENDENT” in the database. This…
user3358519
  • 125
  • 1
  • 8
2
votes
2 answers

Launching my activity on clicking on download notification

I have an application that request DownloadManager to start a download. What I want to do is launch my app when user clicks on the download notification for the download that my app requested from DownloadManager. Below is the code in…
2
votes
0 answers

ASP indirect download fails on android if chrome is used to download file

i have a problem when downloading a file (indirect download mechanism) from my classic asp application with the android version of the Chrome browser (tested on android 5.01). The Download first fails and then gets queued ... It works with Opera,…
Phil Ou
  • 21
  • 3
2
votes
2 answers

Increment download w/ support for download manager

I need to allow files to be downloaded, but have to track the number of times they were downloaded by each user. I have a simple chunk of code here that allows users to download a file, and then the callback increments the counter in the datastore…
veilig
  • 5,085
  • 10
  • 48
  • 86
2
votes
1 answer

Ruby - Save file parts before download finishes

I was looking at downloading scripts in Ruby and most of them end up like this : File.open(fileName, 'wb') do |output| open(@url) do |data| output.write(data.read) end end this approach seems to open a stream and download the file…
Cypher
  • 2,374
  • 4
  • 24
  • 36
2
votes
0 answers

How to prevent download notification from disappearing in Android API 10

I am using download manager to download some files into the app. It works fine for API level > 10 but the notification comes and goes for API 10. I have to implement it on API 10 so please dont ask me to change the MinSdkVersion. The code for the…
2
votes
0 answers

Should the Android SKD manager download from the same URL twice?

I have the following in my Android SDK Manager Log: Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml Fetched Add-ons List successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-10.xml Done loading…
2
votes
1 answer

Get filename before download

I want to download some files using my own webview, but when i use download manager i am not able to get the default name of the file before downloading it. I tried this but it does not work String fileName = url.substring(url.lastIndexOf('/') +…
Device
  • 993
  • 3
  • 11
  • 26
2
votes
0 answers

Not able to download video but for pdf its working Download manager

Hi i am trying to download video file and pdf through DownloadManager. For pdf its working fine but when i am trying to download the video its not getting downloaded. I am using below code: private void downloadFileFromServer(String fid, String…
rupesh
  • 2,865
  • 4
  • 24
  • 50
2
votes
1 answer

Which HTTP status codes should be used to advise download managers?

I have written a little PHP script, which limits the speed when downloading a file and which supports download resuming feature. But the speed limit can be overrided by using download managers, which create for example 10 download sections and…
salim_aliya
  • 253
  • 2
  • 3
  • 14
2
votes
1 answer

When is DownloadManager preferable to HttpUrlConnection?

I'm requesting text-only data from a web API that can be as large as ~5 MB or as small as a ~1 KB. I'm hesitant to use HttpUrlConnection because of the increased likelihood of timing out and the memory footprint of a 5 MB InputStream. From the…
2
votes
2 answers

DownloadManager: Freshly downloaded file disappears by itself

I've a very odd problem using DownloadManager. I download some .zip files into /mnt/sdcard/Download. BroadcastReceiver.onReceive() gets called, and checking if the downloaded file exists returns true. However, a few moments later the file is gone.…
user2779473
  • 131
  • 4
  • 9
2
votes
1 answer

how to stop download in notification bar using android downloading manager?

i am working with a download manager in android. i used download manager class for this purpose. one button to start and another to stop it. i am also using a progress bar to show percentage downloaded. everything work fine but when i click on stop…
user2696228
  • 23
  • 1
  • 4
2
votes
1 answer

Downloading process killed by os while downloading multiple sound files via Download Manager in android

I am developing an android application in which i have to download multiple sound files from a server. Each file has approximately 10MB size. For that i have used Download Manager to download multiple files from server. But when i downloading…