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

setDestinationInExternalFilesDir() works setDestinationInExternalPublicDir() doesn't

I am trying to download file from url and save it to general downloads folder. setDestinationInExternalPublicDir() doesn't work and doesn't throw any exception. But setDestinationInExternalFilesDir() works fine. Any idea what the reason can be ? My…
Elnoor
  • 3,401
  • 4
  • 24
  • 39
-1
votes
1 answer

Downloading files with asterisks in their names Android Java

When I try to download files with asterisks in their names the downloads fail. The downloads work fine with files that don't have asterisks, and I know that it is using the correct path. The downloads just seems to stop right after starting. Do you…
-1
votes
1 answer

how to cancel a download when user clicked in android

i am new to download manager side of android, i can't cancel the download when user clicked a button,i am putting the current id of request but still havent solve it, help me thnks in advance heres the main class public class…
robinHood013
  • 209
  • 1
  • 2
  • 15
-1
votes
1 answer

How to show download progress in app

I've gotten my app to download content from a website but the intent asks you to open the link in the browser and downloads it from there. I wish to change that so when i tap the download button, instead of the intent directing to the browser it…
-1
votes
1 answer

DownloadManager: prevent listing files in Download app

I'm using DownloadManager to download a file my app needs to the /Android/data/com.example.myapp folder. After successful download, the file is listed in the Downloads app list, which I don't want. Anyway to prevent this?
mraviator
  • 4,034
  • 9
  • 38
  • 51
-1
votes
1 answer

Is there is any compatible library for download manager to work in Android 2.2 and above?

I was downloading a video file through android app, and the DownloadManager class helped me to download easier with notification on status bar. Since the DownloadManager class is introduced in 2.3 and above am stuck with downloading functionality…
Linson
  • 655
  • 1
  • 7
  • 21
-1
votes
1 answer

android default download manager

I want to use android's default download manager. I mean I have a url. I just invoke android's default download manager by giving the url. Then the rest (stop, pause, delete download ques) is with download manager. I tried to manipulate downloads by…
Namikaze Minato
  • 1,332
  • 4
  • 23
  • 41
-1
votes
1 answer

download manager class crashes when try to download multiple files?

i am trying to download images from the web when my app is connected to the internet through this code public void downloadimages(String url,String filename) { String ur1=url,v1=filename; downloadManager =…
Pramod Yadav
  • 2,316
  • 2
  • 23
  • 36
-1
votes
1 answer

Not able to download the images?

Cursor appu=X.getsomething(); if (appu.getCount() > 0) { if (appu.moveToFirst()) { do { String uname =…
Pramod Yadav
  • 2,316
  • 2
  • 23
  • 36
-2
votes
1 answer

DownloadManager produces ANR

I am downloading many files (50+) from DownloadManager by enqueue it in a for loop. On start of the download the UI freezes for a while and produces ANR. I am using volley library to access the files from the server and enqueue them in the…
-2
votes
1 answer

Download video file using DownloadManager in Android

I am new to Android, am working on a project which downloads files from given url,it works fine for mp3 but am not able to download video files and if it is downloaded than it does not open....plz help my code is like this: public class…
Shahid Ali
  • 11
  • 4
-2
votes
2 answers

Download file within the app by clicking on the weblink.

I am developing app like playstore in which user can download any app. i have many apps in my application that i got from my website through wp api v2. when we click on any of the available application detail opened and it have a download link. when…
Shahroz javaid
  • 169
  • 1
  • 1
  • 12
-2
votes
1 answer

"Parser error" after downloading upgrading in android

I am developing an application for android which on downloading the upgrade prompts the user to install. But it shows "Parser error: There was a problem while parsing the package."after downloading the file successfully. Following is my code to…
-3
votes
1 answer

How to decrypt files downloaded by Android DownloadManager?

I am using E2E encryption for sending files between Android devices. Is there a way to download an encrypted file using the DownloadManager and immediately decrypt the file before saving it to the disk? To my understanding, the only solution is to…
-3
votes
2 answers

Download file from internet and register broadcast receiver only with network available

I'm developing an app that needs to download a json file from a web server in the background and stored it in the external memory, every time you load the activity it will populate the data by reading the file first (and if there is no file it will…
1 2 3
66
67