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

Android Download manager.COLUMN_TOTAL_SIZE_BYTES returns -1 during status is running

Hi in my android application i need to download media files from server, for that i have used Download Manager service. And also i want to show the progress of the download in ui. Downloading works perfectly but progress bar is updating only when…
3
votes
2 answers

Download manager does not recognise .mp3 files

I am using Download Manager and i want to download some audio files using my own webview. I use the following code: DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url2)); …
Device
  • 993
  • 3
  • 11
  • 26
3
votes
0 answers

Google Download Manager immediately stops with STATE_COMPLETED

I'm trying to use the google download manager for downloading main and patch expansion files which are both uploaded with the apk. I'm pretty much following the google example. The download process starts but immediately stops with…
3
votes
0 answers

Disable upload after downloading with DownloadManager

I am using the DownloadManager to download my App-Data. After the downloading is finished I see in the Log following: I/iu.UploadsManager﹕ End new media; added: 0, uploading: 0, time: 151 ms many many times. It seems, that it tries to upload my…
Informatic0re
  • 6,300
  • 5
  • 41
  • 56
3
votes
1 answer

Why do download managers work faster than the default browser downloaders?

I mean, can't Google Chrome's and Firefox'es implement the same logic as the download manager extensions do? One might say that the download managers use multi threading which not might be a good experience for browsing rest of the web pages; but…
rahulg
  • 2,183
  • 3
  • 33
  • 47
3
votes
1 answer

Android downloading file through DownloadManager not working correctly

I'm trying to download files thru DownloadManager, it works perfectly on most of the phones (Nexus family, S3, etc) but on Galaxy S2 for some reason the download works, but the name of the file is set wrong and when I try to open it (either from…
Ciprian
  • 2,879
  • 3
  • 28
  • 28
3
votes
1 answer

W/DownloadManager( 7621): Aborting request for download 11:

E/UpdatesSettings( 7146): File write failed: java.io.IOException: open failed: EBUSY (Device or resource busy) I/DownloadManager( 7621): Initiating request for download 11 W/DownloadManager( 7621): Aborting request for download 11: while opening…
tang
  • 55
  • 6
3
votes
1 answer

Android: save downloaded data using DownloadManager in the internal memory

I am downloading data from a server using the DownloadManager class in Android. I want to save data in the internal memroy (data/data/mypackage/files/...) instead of the external memory. How to do this? DownloadManager dm = (DownloadManager)…
b.i
  • 1,087
  • 4
  • 22
  • 43
3
votes
1 answer

Notification bar disappears after download is completed using DownloadManager in Android

i am downloading an application in Android using the DownloadManager class. When the download is completed, the notification bar disappears. How to let it visible until the user click on it? EDIT I can use VISIBILITY VISIBLE _NOTIFY COMPLETED in API…
b.i
  • 1,087
  • 4
  • 22
  • 43
3
votes
0 answers

Downloading a small (vcf) file often fails on Android

I have a web page where I can download a contact file (.vcf / vcard) to my Android phone and then open it to add to contacts. The file is very small, only around 260-270 bytes. On different versions of Android and different phones, the success rate…
Andrew Mackenzie
  • 5,477
  • 5
  • 48
  • 70
2
votes
2 answers

How to display a list of files downloaded by my app?

Possible Duplicate: How to list my app downloads I created an android app that displays a list of books which users can download them, I made the downloads in the directory /mnt/sdcard/myapp/download File sdCard =…
AliDeV
  • 213
  • 2
  • 10
2
votes
2 answers

Multi-threaded downloader in C#

I'm working on a WPF download manager which should support downloading multiple files at the same time through HTTP, adding a new download, pause/resume, displaying and updating each download process information (filename, size, download percentage,…
marko
  • 217
  • 1
  • 4
  • 14
2
votes
1 answer

AXIOS - download file instantly using browser's download manager

I want to download large file. Current solution works fine but user can't see progress in browser's download manager window and I have to handle progress by myself (only by displaying infinite progress indicator). Is it possible somehow to stream…
Adam Ostrožlík
  • 1,256
  • 1
  • 10
  • 16
2
votes
0 answers

IllegalArgumentException: column local_filename is not allowed in queries when calling DownloadManager.query()

in my app i'm starting download via DownloadManager: val downloadId: Long = downloadManager.enqueue(dr) If user reopenning application, i'm checking downloading status via: fun isDownloadInProgress(): Boolean { val dq: DownloadManager.Query =…
2
votes
0 answers

How to get permission of video downloader from appstore?

I made an app which enable us to download tiktok video by using api to extract tiktok video url and ffmpeg library. However, app store rejected it because of Guideline 5.2.3 - Legal - Intellectual Property. "Your app allows users to save or download…
ki1
  • 21
  • 2