SmsManager.SendMultipartTextMessage Method

Definition

Caution

deprecated

Send a multi-part text based SMS.

[Android.Runtime.Register("sendMultipartTextMessage", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/ArrayList;)V", "")]
[System.Obsolete("deprecated")]
public void SendMultipartTextMessage (string? destinationAddress, string? scAddress, System.Collections.Generic.IList<string>? parts, System.Collections.Generic.IList<Android.App.PendingIntent>? sentIntents, System.Collections.Generic.IList<Android.App.PendingIntent>? deliveryIntents);
[<Android.Runtime.Register("sendMultipartTextMessage", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/ArrayList;)V", "")>]
[<System.Obsolete("deprecated")>]
member this.SendMultipartTextMessage : string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Android.App.PendingIntent> * System.Collections.Generic.IList<Android.App.PendingIntent> -> unit

Parameters

destinationAddress
String

the address to send the message to

scAddress
String

is the service center address or null to use the current default SMSC

parts
IList<String>

an ArrayList of strings that, in order, comprise the original message

sentIntents
IList<PendingIntent>

if not null, an ArrayList of PendingIntents (one for each message part) that is broadcast when the corresponding message part has been sent. The result code will be Activity.RESULT_OK for success, or one of these errors: RESULT_ERROR_GENERIC_FAILURERESULT_ERROR_RADIO_OFFRESULT_ERROR_NULL_PDU. The per-application based SMS control checks sentIntent. If sentIntent is NULL the caller will be checked against all unknown applicaitons, which cause smaller number of SMS to be sent in checking period.

deliveryIntents
IList<PendingIntent>

if not null, an ArrayList of PendingIntents (one for each message part) that is broadcast when the corresponding message part has been delivered to the recipient. The raw pdu of the status report is in the extended data ("pdu").

Attributes

Remarks

Send a multi-part text based SMS. The callee should have already divided the message into correctly sized parts by calling divideMessage.

This member is deprecated. Use android.telephony.SmsManager.

Java documentation for android.telephony.gsm.SmsManager.sendMultipartTextMessage(java.lang.String, java.lang.String, java.util.ArrayList<java.lang.String>, java.util.ArrayList<android.app.PendingIntent>, java.util.ArrayList<android.app.PendingIntent>).

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.

Applies to