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 Download Manger is not working in removable storage

I am using downloadManager to download large files from server, and I wanted to store these files in my removable storage like SD card or USB(pendrive). My download location is /storage/511B-14E9/Media . I can successfully created the Media folder…
1
vote
1 answer

How can I show a Downloads List using RecyclerView?

I need to track and update download status(start,pause,play,done) of multiple files in a list that I get from some Api (can't share), onto a RecyclerView. I am also getting a fileId so each file can be distinguished. I need download tracking…
1
vote
0 answers

Cert pinning and Hostname verification by downloadmanager.request in Android

Downloadmanager.request class here https://developer.android.com/reference/android/app/DownloadManager.Request provides an option to download a file. It seems from Android 4.0 onwards, downloadmanager started supporting the SSL handshake and thus…
1
vote
0 answers

How to download a file and write it on sdcard

I need help because when I Download a file on my WebView even I set the path to "/storage/17FA-1CEA/Favorite/" (17FA-1CEA is my sd card ) it always write on internal storage. Just like after I downloaded a file it writes on…
1
vote
0 answers

problem for download counter when user uses download accelerators

I have implemented a route for users to download some files with laravel framework and I want to count the number of downloads for a file. So whenever the route is called I increment the counter for the file. It's all ok until a user uses DOWNLOAD…
1
vote
1 answer

Queueing Multiple Downloads, looking for a producer consumer API

I have an application (a servlet, but that's not very important) that downloads a set of files and parse them to extract information. Up to now, I did those operations in a loop : - fetching new file on the Internet - analyzing it. A multi-threaded…
Snicolas
  • 37,840
  • 15
  • 114
  • 173
1
vote
1 answer

Strange error after file downloading swift

I'm trying to download file from remote server. File is available and downloading also completes. File name I send to this function from collectionview with files, so name is correct. But I have some problems with file saving. Here is my way of file…
Andrew
  • 1,947
  • 2
  • 23
  • 61
1
vote
1 answer

Downloading files in chunks in python?

I am writing a simple synchronous download manager which downloads a video file in 10 sections. I am using requests to get content-length from headers. Using this I am breaking and downloading files in 10; byte chunks and then merging them to form a…
Eka
  • 14,170
  • 38
  • 128
  • 212
1
vote
1 answer

How to enable Https Downloads using java

I use following code to download... public void run() { RandomAccessFile file=null; //download wiil be stored in this file InputStream in=null; //InputStream to read from try { HttpURLConnection…
Rohit
  • 11
  • 1
1
vote
0 answers

DownloadManager addCompletedDownload not work on some devices

I have downloaded File from my web service, the File stored in context.getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS).getPath(); Then I use DownloadManager to add this file to global Downloads folder DownloadManager dm = (DownloadManager)…
Pavel Poley
  • 5,307
  • 4
  • 35
  • 66
1
vote
0 answers

DownloadManager.ERROR_FILE_ERROR when trying to download to SD-card (Samsung Android 9 Pie)

Im trying to download file from my android Unity3D app with java plugin and DownloadManager system service. When I try to download to internal memory everything works fine. The same piece of code works fine with sd card formatted as internal…
1
vote
2 answers

While viewing a PDF file, file is detected by any installed download manager rather than viewing it, how to overcome this behavior?

I'm using jQuery Media Plugin to embedded PDF into a web page as listed in the following sample to ebmedded PDF files. The problem is, if any download manager installed on client machine, it starts automatically downloading file rather than viewing…
Ahmed Atia
  • 17,848
  • 25
  • 91
  • 133
1
vote
1 answer

DownloadManager with custom notification

I'm hitting a wall right now, I'd like to download a file with the DownloadManager and it's working. However I'd like to custom that notification with for example instead of having the progress in percent on the right, I'd like to display:…
1
vote
0 answers

Clear cache of Download Manager programmatically in Android

I have an Android app that has a feature of downloading files. After using the app for some time, downloading files not working. I came to know after some research, after a clear cache of download manager of the system, downloading files work…
1
vote
1 answer

Python get s3 file from download link

I have a download link like such: url = https://api.some.service:443/v2/encodedreport/13402/custom/7378/2019/05/30/MTA4Nzk2X1RlYWRzJTIwLSUyMERTVyUyMFJlcG9ydF8yMDE5MDUzMDEzMDU1OC54bHN4 When i click on the link or open in a browser it starts the…
RSHAP
  • 2,337
  • 3
  • 28
  • 39