DownloadManager
public
class
DownloadManager
extends Object
| java.lang.Object | |
| ↳ | android.app.DownloadManager |
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.
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 Manifest.permission.INTERNET
permission to use this class.
Summary
Nested classes | |
|---|---|
class |
DownloadManager.Query
This class may be used to filter download manager queries. |
class |
DownloadManager.Request
This class contains all the information necessary to request a new download. |
Constants | |
|---|---|
String |
ACTION_DOWNLOAD_COMPLETE
Broadcast intent action sent by the download manager when a download completes. |
String |
ACTION_NOTIFICATION_CLICKED
Broadcast intent action sent by the download manager when the user clicks on a running download, either from a system notification or from the downloads UI. |
String |
ACTION_VIEW_DOWNLOADS
Intent action to launch an activity to display all downloads. |
String |
COLUMN_BYTES_DOWNLOADED_SO_FAR
Number of bytes download so far. |
String |
COLUMN_DESCRIPTION
The client-supplied description of this download. |
String |
COLUMN_ID
An identifier for a particular download, unique across the system. |
String |
|