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

Download and apply images on run time in android app

i am developing an android app, and i want user to download the file(images) after installation and the store them on sd card ,then aply them in my app ,there will be a default app before user download the images and the these images will be…
0
votes
1 answer

Opening files downloaded by DownloadManager causes "The document path is not valid" error

I'm trying to open pdf file downloaded by DownloadManager but from time to time I'm getting "The document path is not valid" on Samsung Galaxy S3 with Android 4.1.2 Intent: Intent openIntent = new…
Ziem
  • 6,579
  • 8
  • 53
  • 86
0
votes
1 answer

Get Currently finished Download

im using DownloadManager to download files in android, and i need to run a command for everydownloaded file, but my receiver is not working, if i put 10files to download, it just return the LAST downloaded file title, why? BroadcastReceiver…
user3284660
  • 59
  • 1
  • 2
  • 11
0
votes
1 answer

Check file before to download

We suppose i have a local file in my sdcard, that an Android app did downloaded and stored, in any time in the remote server this file can change (the content) although the file name is the same. How can i check the file versions without download…
Ollie Strevel
  • 861
  • 1
  • 14
  • 27
0
votes
1 answer

Multiple download with DownloadManager class in android

I am developing application having listview with button in each item of listview. I want to add new download in queue onclick of button (like google play). I am using DownloadManager class it is working fine when i click only one button, but when i…
Javed Salat
  • 526
  • 4
  • 10
  • 26
0
votes
1 answer

Android async task not stopping while download finished

I'm trying to download file using DownloadManager in Async Task. Here's the doInBackground() method protected Boolean doInBackground(String... params) { DownloadManager mgr = (DownloadManager) getSystemService(DOWNLOAD_SERVICE); …
0
votes
1 answer

Is the android.intent.action.MAIN Activity launched when a BroadcastReceiver is called while the app is killed?

If I register for an Intent in the AndroidManifest.xml (specifically DOWNLOAD_COMPLETE from the DownloadManager). If this BroadcastReceiver is called while the application was previously killed, what state will the main Activity be in? Will it even…
0
votes
1 answer

Android Cannot Instantiate the type Request

I have the following code for downloading a file using a download service. Apparently there are no errors.But eclipse is showing the error "Cannot instantiate type Request" near Request request = new Request(Uri.parse(downUrl)); I couldn't find any…
0
votes
1 answer

Doing download job in background while allow user to continue using my app

This come up during my project, i'm building an android application, one of its functions is to allow user to start a file download, the file will be downloaded to my server space, then a batch file will process the download file, after file has…
user1452954
  • 89
  • 1
  • 3
  • 13
0
votes
2 answers

Unable to get the current downloading file size using Android Download Manager

I call the service below to handle the download of a given URL. As you can see in the snippet below I want to assign the current downloading file size to total_size. However (using the Eclipse debugger) its value remains -1 even though the file is…
romseguy
  • 1,535
  • 13
  • 17
0
votes
1 answer

Android - Horizontal Progress Bar not working while downloading file

I am working on a project and in that I am downloading a .pdf file when clicked on ListView and showing horizontal progress bar at the same time.. But, it stops at 1% and is not moving forward and also the file is not getting downloaded.. Please…
Mitesh Shah
  • 1,729
  • 2
  • 19
  • 37
0
votes
2 answers

not download file if exist it in android

When I click on the button, Download the file is properly. but click again button again downloaded but I do not want again download file and show alert with The message is that the downloaded file what can i do? public class Main extends Activity…
0
votes
1 answer

Android - Get title and description from BroadcastReceiver

I'm working on an android application. I'm using BroadcastReciever to get the on know where a download is finished. DownloadManager.Request request = new DownloadManager.Request(Uri.parse(urlString)); …
0
votes
0 answers

The Process android.process.media has died when I download by using DownloadManager

I start multiple file download by using DownloadManager in android. I select the item from Gridview , and use FOR loop to send the request for download file in Fragment-Gridview. It will create a new Fragment-Download , and start download. After…
Wun
  • 6,211
  • 11
  • 56
  • 101
0
votes
1 answer

ContentObserver per row implementation

After "observing" about ContentObserver I noticed that OnChange before API 16 not passing any parameters, so I decided to implement it to each row on my project (the project is downloading url's with the build-in DownloadManager) for each row I'm…
joseRo
  • 1,337
  • 3
  • 18
  • 35