summaryrefslogtreecommitdiff
path: root/core/java/android/content/Context.java
diff options
context:
space:
mode:
authorSteve Howard <showard@google.com>2010-07-02 17:12:48 -0700
committerSteve Howard <showard@google.com>2010-07-13 11:12:16 -0700
commita2709360665f77ed8bebccb2df86f08e8c83a701 (patch)
treec0fdc14e2aa223c51b916d2bbe034d6f281d9f90 /core/java/android/content/Context.java
parent9d8bea11892a43eeab2a1119d68740845a8894e5 (diff)
Initial implementation of the download manager public API.
The implementation is in android.net.DownloadManager, which is obtained through Context.getSystemService(). Right now this class acts as a simple wrapper on top of the existing DownloadProvider, exposing a simple interface to a subset of DownloadProvider's functionality. There are several TODOs for features that require changes to the underlying download manager implementation. Change-Id: I2f26e51b60b6e82af8478ac7ccd895667df095b6
Diffstat (limited to 'core/java/android/content/Context.java')
-rw-r--r--core/java/android/content/Context.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java
index 30822d4ade1e..a14bd8f36a92 100644
--- a/core/java/android/content/Context.java
+++ b/core/java/android/content/Context.java
@@ -1535,6 +1535,15 @@ public abstract class Context {
public static final String UI_MODE_SERVICE = "uimode";
/**
+ * Use with {@link #getSystemService} to retrieve a
+ * {@link android.net.DownloadManager} for requesting HTTP downloads.
+ *
+ * @see #getSystemService
+ * @hide (TODO) for now
+ */
+ public static final String DOWNLOAD_SERVICE = "download";
+
+ /**
* Determine whether the given permission is allowed for a particular
* process and user ID running in the system.
*