Questions tagged [android-download-manager]

A system service that handles long-running HTTP downloads in Android

From the API page:

The download manager is a system service that handles long-running HTTP downloads. Clients may request that a URI be downloaded to a particular destination file. 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. Instances of this class should be obtained through getSystemService(String) by passing DOWNLOAD_SERVICE. Apps that request downloads through this API should register a broadcast receiver for ACTION_NOTIFICATION_CLICKED to appropriately handle when the user clicks on a running download in a notification or from the downloads UI. Note that the application must have the INTERNET permission to use this class.

Useful links

994 questions
0
votes
1 answer

Android DownloadManager loading while downloading with api 9

My app has 5 big text files on them, each one about 40kb. Those files are updated weekly on a website. I managed to set downloadManager to download the 5 files from the site. The problem is that I don't want the user to be able to use the app while…
Fowlron
  • 99
  • 1
  • 11
0
votes
0 answers

Android DownloadManager over 2G\3G

I noticed the Android DownloadManager Request can be set to download over NETWORK_MOBILE \ NETWORK_WIFI but is it possible to distinguish between 2G \ 3G \ LTE? thanks.
joseRo
  • 1,337
  • 3
  • 18
  • 35
0
votes
1 answer

Using DownloadManager for incognito downloads

Can I use android.app.DownloadManager to download files that will be accessible (and visible) only to my application? The solution should work for API 9 (2.3), if there is a 3rd party library that will achieve the same as DM then please let me know…
Lukasz 'Severiaan' Grela
  • 6,078
  • 7
  • 43
  • 79
0
votes
1 answer

correct use of URI.fromFile for set destination of downloaded file

i'm still don't understand what's wrong with my app. I'm usind DownloadManager for get from a server some mp3 files and i want to put it inside /Podcasts default android folder, but i'm not able to do it. I've try different way but without success.…
giozh
  • 9,868
  • 30
  • 102
  • 183
0
votes
0 answers

Download Manager crashing when calling from child activity

I am facing a head scratching issue and not able to resolve. Can someone here help... I have one activity (parent) that starts another activity(child). And I am initiating Download Manager from child activity. When I am clicking a button on child…
ravi tiwari
  • 521
  • 1
  • 8
  • 24
0
votes
0 answers

Android Downloadmanager limit

I use the Android downloadmanager (above 2.3) for downloading many small files with different file extension (png,jpg,mov). After downloading 30000 images the android.process.media stop working and there isn't any exception message. The Downloaddir…
0
votes
1 answer

Launch Adobe Reader in Android App

I have an Android app where I intercept a PDF file download event in the WebView, download it using the DownloadManager, and launch a new intent with the Adobe Reader to display the file. It works fine, except that when the Adobe Reader starts, it…
0
votes
1 answer

Android downloading files - Issues with Stream that is not complete yet

Im downloading files from a server, some big, some small. protected Long doInBackground(Object... params) { Context context = (Context) params[0]; String name = (String) params[1]; String urlString = (String) params[2]; …
Harry
  • 13,091
  • 29
  • 107
  • 167
0
votes
2 answers

Android DownloadManager double request & request abort

I'm trying to get download manager request working and I'm getting a strange error. Here's the code: package com.vsnetworks.vswebkads; import java.io.File; import android.net.Uri; import android.os.Bundle; import…
s.field212
  • 75
  • 2
  • 11
0
votes
2 answers

Disable downloads for a browser in android

I am using fennec(Morzilla browser) in my android application. In this application if i select to disable downloads it must disable the downloads in the browser as well. How can i do that?
sundeep
  • 601
  • 1
  • 8
  • 21
0
votes
1 answer

PendingIntent and DownloadManager

Is there any way to set up a PendingIntent with the download manager? Or the DownloadManager.Request? I'm sending the user a notification in the toolbar about the download with this:…
-1
votes
1 answer

Set timeout for Android Download manager after 2 min

How to set the Download manager time out and enable or disable the Download manager after 2 minutes. fun downloadFile(url: String) { val downloadManager = this.getSystemService(Context.DOWNLOAD_SERVICE) as DownloadManager val…
Android Dev
  • 421
  • 8
  • 26
-1
votes
1 answer

What is the exact reference of "External" in android Studio's DownloadManger class?

As using setDestinationInExternalFilesDir and setDestinationInExternalPublicDir while working with DowloadManager in "android studio", I noticed that there's something weird with these two methods. Do ExternalFilesDir and ExternalPublicDir refer…
-1
votes
1 answer

Not able to download files using download manager

I'm using download manager for downloading files but when I tried to download file using android pie devices it doesn't work. Can some one tell me what is the alternative for this. I have also tried adding network config file in the manifest file…
RT16
  • 55
  • 2
  • 11
-1
votes
1 answer

Delete a downloaded file android

So i have used DownloadManager to download a file from the internet using the following code : public void DownloadFile() { Log.d("DownloadFileEntered", "true"); try { String url =…