java.lang.Object | |
↳ | android.telephony.gsm.SmsManager |
This class is deprecated.
Replaced by android.telephony.SmsManager that supports both GSM and CDMA.
Manages SMS operations such as sending data, text, and pdu SMS messages. Get this object by calling the static method SmsManager.getDefault().
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | RESULT_ERROR_GENERIC_FAILURE | This constant is deprecated. Use android.telephony.SmsManager. | |||||||||
int | RESULT_ERROR_NO_SERVICE | This constant is deprecated. Use android.telephony.SmsManager. | |||||||||
int | RESULT_ERROR_NULL_PDU | This constant is deprecated. Use android.telephony.SmsManager. | |||||||||
int | RESULT_ERROR_RADIO_OFF | This constant is deprecated. Use android.telephony.SmsManager. | |||||||||
int | STATUS_ON_SIM_FREE | This constant is deprecated. Use android.telephony.SmsManager. | |||||||||
int | STATUS_ON_SIM_READ | This constant is deprecated. Use android.telephony.SmsManager. | |||||||||
int | STATUS_ON_SIM_SENT | This constant is deprecated. Use android.telephony.SmsManager. | |||||||||
int | STATUS_ON_SIM_UNREAD | This constant is deprecated. Use android.telephony.SmsManager. | |||||||||
int | STATUS_ON_SIM_UNSENT | This constant is deprecated. Use android.telephony.SmsManager. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Use android.telephony.SmsManager.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsManager.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsManager.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsManager.
| |||||||||||
This method is deprecated.
Use android.telephony.SmsManager.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
This constant is deprecated.
Use android.telephony.SmsManager.
Generic failure cause
This constant is deprecated.
Use android.telephony.SmsManager.
Failed because service is currently unavailable
This constant is deprecated.
Use android.telephony.SmsManager.
Failed because no pdu provided
This constant is deprecated.
Use android.telephony.SmsManager.
Failed because radio was explicitly turned off
This constant is deprecated.
Use android.telephony.SmsManager.
Free space (TS 51.011 10.5.3).
This constant is deprecated.
Use android.telephony.SmsManager.
Received and read (TS 51.011 10.5.3).
This constant is deprecated.
Use android.telephony.SmsManager.
Stored and sent (TS 51.011 10.5.3).
This constant is deprecated.
Use android.telephony.SmsManager.
Received and unread (TS 51.011 10.5.3).
This constant is deprecated.
Use android.telephony.SmsManager.
Stored and unsent (TS 51.011 10.5.3).
This method is deprecated.
Use android.telephony.SmsManager.
Divide a text message into several messages, none bigger than the maximum SMS message size.
text | the original message. Must not be null. |
---|
ArrayList
of strings that, in order,
comprise the original message
This method is deprecated.
Use android.telephony.SmsManager.
Get the default instance of the SmsManager
This method is deprecated.
Use android.telephony.SmsManager.
Send a data based SMS to a specific application port.
destinationAddress | the address to send the message to |
---|---|
scAddress | is the service center address or null to use the current default SMSC |
destinationPort | the port to deliver the message to |
data | the body of the message to send |
sentIntent | if not NULL this PendingIntent is
broadcast when the message is sucessfully sent, or failed.
The result code will be Activity.RESULT_OK |
|
|
public
final
void
sendMultipartTextMessage
(String destinationAddress, String scAddress, ArrayList<String> parts, ArrayList<PendingIntent> sentIntents, ArrayList<PendingIntent> deliveryIntents)
Since: API Level 1
This method is deprecated.
Use android.telephony.SmsManager.
Send a multi-part text based SMS. The callee should have already
divided the message into correctly sized parts by calling
divideMessage
.
Parameters
|
|
---|---|
|
|
|
|
|
|
|
|
public
final
void
sendTextMessage
(String destinationAddress, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent)
Since: API Level 1
This method is deprecated.
Use android.telephony.SmsManager.
Send a text based SMS.
Parameters
|
|
---|---|
|
|
|
|
|
|
|
|