From 5962d279f9f231add9a2ad436eb432ac95ab0706 Mon Sep 17 00:00:00 2001 From: Chih-Chung Chang Date: Fri, 4 Sep 2009 14:36:01 +0800 Subject: Add more documents on the ACTION_SEND_MULTIPLE intent. Change-Id: Ic3d7b74299611158470b729be654fbadde1691ff --- core/java/android/content/Intent.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/java') diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 1d1161e..e8b2984 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -923,6 +923,16 @@ public class Intent implements Parcelable { * get*ArrayListExtra can have either a {@link #EXTRA_TEXT} or {@link * #EXTRA_STREAM} field, containing the data to be sent. *

+ * Multiple types are supported, and receivers should handle mixed types + * whenever possible. The right way for the receiver to check them is to + * use the content resolver on each URI. The intent sender should try to + * put the most concrete mime type in the intent type, but it can fall + * back to {@literal /*} or {@literal *}/* as needed. + *

+ * e.g. if you are sending image/jpg and image/jpg, the intent's type can + * be image/jpg, but if you are sending image/jpg and image/png, then the + * intent's type should be image/*. + *

* Optional standard extras, which may be interpreted by some recipients as * appropriate, are: {@link #EXTRA_EMAIL}, {@link #EXTRA_CC}, * {@link #EXTRA_BCC}, {@link #EXTRA_SUBJECT}. -- cgit v1.1