summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2013-10-11 09:49:51 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-11 09:49:51 -0700
commit61ef6e0f202032843e4158f047d126c275f3bd01 (patch)
tree126d84ab3ba4433994cae41d8abfbc0f8ab37e30 /core
parent6b9c8991a8ed5e5b250eda037f31302ff329784a (diff)
parent41920afa54e67010eec146341bce113f05c9d7c3 (diff)
downloadbase-61ef6e0f202032843e4158f047d126c275f3bd01.tar.gz
am 41920afa: am 0b713a09: Merge "Small IntentFilter docs improvement." into klp-dev
* commit '41920afa54e67010eec146341bce113f05c9d7c3': Small IntentFilter docs improvement.
Diffstat (limited to 'core')
-rw-r--r--core/java/android/content/IntentFilter.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/java/android/content/IntentFilter.java b/core/java/android/content/IntentFilter.java
index dad0dfb91a75..cd4a7a0ecb7d 100644
--- a/core/java/android/content/IntentFilter.java
+++ b/core/java/android/content/IntentFilter.java
@@ -83,7 +83,9 @@ import java.util.Set;
* for an IntentFilter to match an Intent, three conditions must hold:
* the <strong>action</strong> and <strong>category</strong> must match, and
* the data (both the <strong>data type</strong> and
- * <strong>data scheme+authority+path</strong> if specified) must match.
+ * <strong>data scheme+authority+path</strong> if specified) must match
+ * (see {@link #match(ContentResolver, Intent, boolean, String)} for more details
+ * on how the data fields match).
*
* <p><strong>Action</strong> matches if any of the given values match the
* Intent action; if the filter specifies no actions, then it will only match
@@ -976,7 +978,11 @@ public class IntentFilter implements Parcelable {
* Match this filter against an Intent's data (type, scheme and path). If
* the filter does not specify any types and does not specify any
* schemes/paths, the match will only succeed if the intent does not
- * also specify a type or data.
+ * also specify a type or data. If the filter does not specify any schemes,
+ * it will implicitly match intents with no scheme, or the schemes "content:"
+ * or "file:" (basically performing a MIME-type only match). If the filter
+ * does not specify any MIME types, the Intent also must not specify a MIME
+ * type.
*
* <p>Be aware that to match against an authority, you must also specify a base
* scheme the authority is in. To match against a data path, both a scheme