Intent.ActionSendMultiple Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Activity Action: Deliver multiple data to someone else.
[Android.Runtime.Register("ACTION_SEND_MULTIPLE")]
public const string ActionSendMultiple;
[<Android.Runtime.Register("ACTION_SEND_MULTIPLE")>]
val mutable ActionSendMultiple : string
Field Value
Implements
- Attributes
Remarks
Activity Action: Deliver multiple data to someone else.
Like ActionSend, except the data is multiple.
Input: Type is the MIME type of the data being sent. get*ArrayListExtra can have either a ExtraText or ExtraStream field, containing the data to be sent. If using ExtraText, you can also optionally supply ExtraHtmlText for clients to retrieve your text with HTML formatting.
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 <type>/* or */* 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/*.
As of JellyBean, the data being sent can be supplied through #setClipData(ClipData). This allows you to use GrantReadUriPermission when sharing content: URIs and other advanced features of ClipData. If using this approach, you still must supply the same data through the ExtraText or ExtraStream fields described below for compatibility with old applications. If you don't set a ClipData, it will be copied there for you when calling StartActivity(Intent).
Starting from O, if CategoryTypedOpenable is passed, then the Uris passed in either ExtraStream or via ClipData may be openable only as asset typed files using OpenTypedAssetFileDescriptor(Uri, String, Bundle).
Optional standard extras, which may be interpreted by some recipients as appropriate, are: ExtraEmail, ExtraCc, ExtraBcc, ExtraSubject.
Output: nothing.
Java documentation for android.content.Intent.ACTION_SEND_MULTIPLE.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.