summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/ContentProvider.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-09-26 18:34:53 -0700
committerDianne Hackborn <hackbod@google.com>2010-09-26 21:31:47 -0700
commit8313fc7e94e46e5cc09f457a15a771a325b9f74f (patch)
treed68bf554b0d92a64cde72e58178e60d4d30b521d /core/java/android/content/ContentProvider.java
parent08c09b0f84b23627b4cd02e1b9a642952fbd2e7f (diff)
downloadframeworks_base-8313fc7e94e46e5cc09f457a15a771a325b9f74f.zip
frameworks_base-8313fc7e94e46e5cc09f457a15a771a325b9f74f.tar.gz
frameworks_base-8313fc7e94e46e5cc09f457a15a771a325b9f74f.tar.bz2
Allow all apps to call ContentResolver.getType().
I can't find the bug number for this, but it is needed for some things we are doing where the app building an intent may not have access to the URI in the data field. This is for HC, but doing in GB to avoid introducing integration issues. Change-Id: I0cac971854198b18775d2a73deb80f23431bfbe2
Diffstat (limited to 'core/java/android/content/ContentProvider.java')
-rw-r--r--core/java/android/content/ContentProvider.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/content/ContentProvider.java b/core/java/android/content/ContentProvider.java
index dc4e9c4..1d6e8b8 100644
--- a/core/java/android/content/ContentProvider.java
+++ b/core/java/android/content/ContentProvider.java
@@ -544,6 +544,12 @@ public abstract class ContentProvider implements ComponentCallbacks {
* <a href="{@docRoot}guide/topics/fundamentals.html#procthread">Application Fundamentals:
* Processes and Threads</a>.
*
+ * <p>Note that there are no permissions needed for an application to
+ * access this information; if your content provider requires read and/or
+ * write permissions, or is not exported, all applications can still call
+ * this method regardless of their access permissions. This allows them
+ * to retrieve the MIME type for a URI when dispatching intents.
+ *
* @param uri the URI to query.
* @return a MIME type string, or null if there is no type.
*/