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
2 answers

How does FDM (Free Download Manager) determine a file's date and time?

I assume many of you use download managers. I use the Free Download Manager, and I like it a lot. But I am confused about how this valuable tool determines the date and time of the file it downloads. For example, I downloaded the PDF file…
Ωmega
  • 42,614
  • 34
  • 134
  • 203
2
votes
0 answers

Download files asynchronously with multiple connections using Python

I want to know how to write a Python download manager that downloads multiple files concurrently, each with multiple connections (32 connections), with the following download manager features: start time, elapsed time, estimated time of arrival,…
2
votes
2 answers

Identifying the particular file after downloaded using Download Manager in Android

I am calling below function to download a binary file. fun downloadFile( baseActivity: Context, batteryId: String, downloadFileUrl: String?, title: String? ): Long { val directory = …
Jaimin Modi
  • 1,530
  • 4
  • 20
  • 72
2
votes
1 answer

Scoped Storage: getExternalStoragePublicDirectory and setDestinationInExternalPublicDir

With Scoped Storage, getExternalStoragePublicDirectory is deprecated and Android documentation says This method was deprecated in API level 29. To improve user privacy, direct access to shared/external storage devices is deprecated. When an app…
2
votes
1 answer

How to identify which file triggered Download_Complete intent

I'm developing an application that will Download another apk file, and asks for it's installation. Since my target is GingerBread I'm using the DownloadManager class. Is there anyway to know which downloaded file triggered the DOWNLOAD_COMPLETE…
YasuDevil
  • 470
  • 5
  • 16
2
votes
0 answers

How to capture downloads from Browsers

My Name is Rohit Kumawat I am creating a Download Manager in Java Language. I have almost created it with support for FTP,HTTP & HTTPS(Using JSSE 3.0). Now i want to capture downloads from Browser as IDM or other Downlaod Manager does. How can i…
2
votes
0 answers

Download Manager trust hostname

I am getting the following error while trying to download file with DownloadManager: [5007] Stop requested with status HTTP_DATA_ERROR: Hostname my.host not verified: How can I add this hostname as verified for my app, so DownloadManager will…
Pavel Poley
  • 5,307
  • 4
  • 35
  • 66
2
votes
0 answers

How can I show progress percentage in Android DownloadManager Notifications?

I use Android DownloadManager to download video files from my app. It seems there is no percent in the notifications of DownloadManager. How can I implement it? I tried to implement custom notification, but it doesn't work properly when I swipe to…
2
votes
4 answers

Multiplication of two int's gets negative

I'm currently coding a little download manager and I get a funny output when I try to calculate the download-progress in percent. This is what i use to calculate it: int progress = (byte_counter * 100) / size; System.out.println("("+byte_counter+" *…
Lukas Knuth
  • 25,449
  • 15
  • 83
  • 111
2
votes
4 answers

PHP proxy to download files

I think this is a easy one. I have a simple website with a reserved area and some files to download from it. I disabled direct file download with .htaccess, and I manage the download of file via this simple proxy.php file: // .... if ($filename…
Mauro
  • 189
  • 2
  • 14
2
votes
0 answers

Android DownloadManager always returning 404

Trying to use android's DownloadManager service but always getting a 404 as reason. Here is the code that queues up a request : val downloadManager = applicationContext.getSystemService(Context.DOWNLOAD_SERVICE) as DownloadManager …
James
  • 103
  • 2
  • 7
2
votes
1 answer

DownloadManager.Request.setNotificationVisibility not showing Notification in android P

I am downloading a pdf file and notification for download is visible in marshmallow but it is not Visible in Android P. My Files downloads successfully in both Android-M and Android-P My code is here. public static long DownloadData (Uri uri,…
2
votes
1 answer

How do I remove a CAShapeLayer in progressbar circle

I have the following code, which I am implementing to download a PDF with a progress circle. It is working for me, first I check that the file is already saved in the "Documents" directory and if it is true I simply show the PDF, and if the pdf file…
Mario Burga
  • 1,107
  • 1
  • 13
  • 19
2
votes
0 answers

How to pause and resume a download file

I'm trying to create a downloader. My biggest concern is how should I pause a download. I am showing a progress bar of download, I want to pause it when it's 30% and wants to resume it after any UI response. Any idea how should I do it? Using…
2
votes
0 answers

DownloadManager: download to external storage if sdcard is not mounted

I'm working on an app that can download files using DownloadManager. I set the download location to the external storage using this method: setDestinationInExternalFilesDir(context, "temp_downloads", "filename"); The reason I decided to download to…
user5228539