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
132
votes
7 answers

What's a .sh file?

So I am not experienced in dealing with a plethora of file types, and I haven't been able to find much info on exactly what .sh files are. Here's what I'm trying to do: I'm trying to download map data sets which are arranged in tiles that can be…
Tony H
  • 1,339
  • 2
  • 9
  • 4
63
votes
2 answers

DownloadManager.Request.setNotificationVisibility fails with SecurityException: invalid value for visibility: 2

I'm trying to use DownloadManager in a Service class of mine: DownloadManager downloadManager = (DownloadManager) getSystemService(DOWNLOAD_SERVICE); //imageUri is a valid Uri Request downloadRequest= new Request(imageUri); …
rds
  • 26,253
  • 19
  • 107
  • 134
43
votes
2 answers

Android DownloadManager Progress

I'm developing an app where users are able to download different content packages. For the download process, I'm using the DownloadManager class. That's working fine so far. How can I get the current progress of a running download which was started…
user1003622
  • 431
  • 1
  • 4
  • 4
41
votes
4 answers

Android DownloadManager API - opening file after download?

I am facing problem of opening downloaded file after successfull download via DownloadManager API. In my code: Uri uri=Uri.parse("http://www.nasa.gov/images/content/206402main_jsc2007e113280_hires.jpg"); Environment …
Waypoint
  • 17,283
  • 39
  • 116
  • 170
32
votes
3 answers

DownloadManager.ACTION_DOWNLOAD_COMPLETE broadcast receiver receiving same download id more than once with different download statuses in Android

I am using Android DownloadManger System Service for downloading some files in following way dwnId = mgr.enqueue(new DownloadManager.Request(serveruri) .setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI | …
Ganesh K
  • 2,623
  • 9
  • 51
  • 78
26
votes
4 answers

Set custom folder Android Download Manager

I've a question about Download Manager. I'm going to download a file from a site. When I set the default directory for download (Environment.DIRECTORY_DOWNLOAD) all works fine and my download is started. But if I try to change the directory, my app…
bott91
  • 263
  • 1
  • 3
  • 5
20
votes
3 answers

Android DownloadManager and SSL (https)

Oh, great. There's always something else that some... Grrr... Anyway, so I worked days and days wading through vague, incomplete, and contradictory Picasa information so that my Android app could find a Picasa picture and download it using the…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
18
votes
2 answers

Till when android download manager will give status of a download by download reference Id?

I have a use case where, I started downloading a file using android download manager, and in the middle switched off mobile. When I restarted again, the download continued and completed. I got the status by giving the download reference id. But I…
15
votes
1 answer

Using Flutter Downloader plugin, after download app closes

I use flutter_downloader package. After complete download some files, my app closes automatically and disconnects from the android studio. Anyone help me to find solutions. final status = await Permission.storage.request(); if…
15
votes
1 answer

notification disappears - Android DownloadManager

Solution: API 11 is needed see answer below! Easy Question: After downloading a File with the implemented DownloadManager the Notification disappears. How do I force the Notification to stay after Download? I tried to use…
malger
  • 173
  • 1
  • 2
  • 7
13
votes
0 answers

DownThemAll alternative for Firefox Quantum?

previously i was using DownThemAll extension on my Firefox. recently i upgraded my firefox to Quantum since DownthemAll does not support latest Firefox do we have any alternative for DownThemAll extension. source of extension ! thanks in advance!
Ashu_FalcoN
  • 916
  • 2
  • 10
  • 21
13
votes
1 answer

Android 6.0 - external storage files being deleted upon app uninstall

My app uses the DownloadManager to download files to a subdirectory of the device's Music folder. DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url)); ... File file = new…
12
votes
6 answers

A question about writing a background/automatic/silent downloader/installer for an app in C#

Background: I have a main application that needs to be able to go to the web and download DLL files associated with it (ones that we write, located on our server). It really needs to be able to download these DLL files to the application folder in…
Mike Webb
  • 8,855
  • 18
  • 78
  • 111
12
votes
1 answer

Android DownloadManager.ERROR_FILE_ERROR

Possible duplicate I am downloading large zip files using Android DownloadManager. I have listview that shows list of all zip files and user can tap item to start downloading. Only one item can be downloaded at a time. When new list item starts…
Nouman Bhatti
  • 1,777
  • 4
  • 28
  • 55
12
votes
2 answers

Manually add local file to the Downloads app

My app needs to download files, I was looking into DownloadManager, however it has some limitations that don't suit my case (authentication, naming scheme, verification), so I made my custom download engine. Is it possible to manually add a file…
Venator85
  • 10,245
  • 7
  • 42
  • 57
1
2 3
30 31