summaryrefslogtreecommitdiffstats
path: root/core/java/android/provider
diff options
context:
space:
mode:
authorVasu Nori <vnori@google.com>2010-11-02 21:55:30 -0700
committerVasu Nori <vnori@google.com>2010-11-04 17:57:24 -0700
commit5be894e636522addc40dad3b631f0249e6cc25cf (patch)
treed5668cf025397ddb4b6951e11012a44cfc466213 /core/java/android/provider
parente84c00f4a7dec8c670eeef013b3cd6ecc7277de3 (diff)
downloadframeworks_base-5be894e636522addc40dad3b631f0249e6cc25cf.zip
frameworks_base-5be894e636522addc40dad3b631f0249e6cc25cf.tar.gz
frameworks_base-5be894e636522addc40dad3b631f0249e6cc25cf.tar.bz2
add API to return Uri for the given downloaded file id & get mimetype
Change-Id: I1f5dd734e394db0056579a3a0c26862fee27981e
Diffstat (limited to 'core/java/android/provider')
-rw-r--r--core/java/android/provider/Downloads.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/core/java/android/provider/Downloads.java b/core/java/android/provider/Downloads.java
index 7054888..65adef9 100644
--- a/core/java/android/provider/Downloads.java
+++ b/core/java/android/provider/Downloads.java
@@ -87,6 +87,16 @@ public final class Downloads {
public static final Uri ALL_DOWNLOADS_CONTENT_URI =
Uri.parse("content://downloads/all_downloads");
+ /** URI segment to access a publicly accessible downloaded file */
+ public static final String PUBLICLY_ACCESSIBLE_DOWNLOADS_URI_SEGMENT = "public_downloads";
+
+ /**
+ * The content URI for accessing publicly accessible downloads (i.e., it requires no
+ * permissions to access this downloaded file)
+ */
+ public static final Uri PUBLICLY_ACCESSIBLE_DOWNLOADS_URI =
+ Uri.parse("content://downloads/" + PUBLICLY_ACCESSIBLE_DOWNLOADS_URI_SEGMENT);
+
/**
* Broadcast Action: this is sent by the download manager to the app
* that had initiated a download when that download completes. The
@@ -358,6 +368,13 @@ public final class Downloads {
*/
public static final String COLUMN_MEDIAPROVIDER_URI = "mediaprovider_uri";
+ /**
+ * The column that is used to remember whether the media scanner was invoked.
+ * It can take the values: null or 0(not scanned), 1(scanned), 2 (not scannable).
+ * <P>Type: TEXT</P>
+ */
+ public static final String COLUMN_MEDIA_SCANNED = "scanned";
+
/*
* Lists the destinations that an application can specify for a download.
*/