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

How to get status of downloading?

I use DownloadManager for getting status of downloading, but it still doesn't work, it never jumps to condition if(c.moveToFirst()) and I don't know why. Could anybody help me, please? private final BroadcastReceiver myReceiver = new…
Adam
  • 2,152
  • 4
  • 35
  • 45
7
votes
3 answers

DownloadManager.Request.setNotificationVisibility fails with jSecurityException: invalid value for visibility: 1

I am trying to use the DownloadManager to download large PDF files from my app. I want notifications to be displayed during the download as well as when the download finishes. However setting the visibility causes above exception. This error is…
Marc
  • 511
  • 4
  • 9
7
votes
4 answers

C# Downloader: should I use Threads, BackgroundWorker or ThreadPool?

I'm writing a downloader in C# and stopped at the following problem: what kind of method should I use to parallelize my downloads and update my GUI? In my first attempt, I used 4 Threads and at the completion of each of them I started another one:…
7
votes
2 answers

java.net.UnknownServiceException: CLEARTEXT communication to t.main.wedeep.com.cn not permitted by network security policy

I got above error when i use mockhttpserver to test http request, the following code is how i create service. fun getService(clazz: Class): T { val client =…
Cyrus
  • 8,995
  • 9
  • 31
  • 58
7
votes
3 answers

Android ProgressBar in ListView while using DownloadManager

I have a ListView in which each item represents a PDF file. When the user clicks on an item, the application must download the file on external storage. Now the download doesn't work properly, but that's not the question. I want a ProgressBar,…
7
votes
4 answers

DownloadManager not storing Downloaded files in Download Folder

Whenever i try to download any file through the code below dm = (DownloadManager) context.getSystemService(context.DOWNLOAD_SERVICE); request = new Request( Uri.parse(finalurl)); enqueue = dm.enqueue(request); BroadcastReceiver receiver = new…
architjn
  • 1,397
  • 2
  • 13
  • 30
7
votes
1 answer

Can't resume download

I want to download a big (zip) file from my server. It's about 440MB. I'm using android download service. Here is my code: DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE); Request request = new…
Rado Dr.
  • 425
  • 1
  • 3
  • 10
7
votes
2 answers

Download manager in Java

I need to several some huge files (several gigs) from Java via FTP/HTTP. Is there a ready library (java / command line tool) to facilitate the download? Some obvious requirements are: Multi-connection download - should be able to open several…
ripper234
  • 222,824
  • 274
  • 634
  • 905
7
votes
3 answers

App not receiving android.intent.action.DOWNLOAD_COMPLETE intent

I am writing a simple app that would get notified when any download via the Download manager is completed on the android device. I have created a Broadcast Receiver for the same and set the intent filter as below in my Manifest file. However my…
sim
  • 249
  • 7
  • 17
7
votes
2 answers

Android DownloadManager "Impossible to open file"

I'm using DownloadManager to download a file from a webService. The download end successfuly, but when I try to open the new file in the "download" folder I've got this error "Impossible to open file" (and I know I can open this type of file). Also,…
Maugun
  • 121
  • 1
  • 7
7
votes
3 answers

How to Show download progress in progress bar in Android?

I am using .net web services and I am able to download the file in sd card, But I want to show progress bar when particular file start download and complete and then I want to show options like view and cancel. Click event Class: public void…
Shweta
  • 1,145
  • 5
  • 18
  • 35
7
votes
0 answers

How to download multiple files with android DownloadManager so that it appears in one queue

I'm using DownloadManager to download files. I know how to download one file and either use request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED); or not. But I have multiple files that "belong" together in…
Gavriel
  • 18,880
  • 12
  • 68
  • 105
7
votes
1 answer

Pause/Resume http connection download

I want to be able to open a http connection to a given file in Android and start downloading it. I also have to be able to pause the download at some point and resume it later. How is this achieved in Android? I don't want to start the download all…
gop
  • 2,150
  • 5
  • 26
  • 54
7
votes
1 answer

Android DownloadManager with POST method?

I started to work with android.app.DownloadManager and faced a problem. By default, DM sending HTTP GET request to download file: GET http://www.example.com/getfile HTTP/1.1 Cookie: id=sdfsdf;Max-Age=10800000;Path=/ Host: ___ Connection:…
Grekov Serg
  • 251
  • 3
  • 11
7
votes
4 answers

Android Download Manager

I think i have a rather simple question. http://www.vogella.com/blog/2011/06/14/android-downloadmanager-example/ I have been following a tutorial in the above url. How do I change the filepath for downloads? Thanks in Advance
Mich
  • 105
  • 1
  • 2
  • 9
1 2
3
30 31