android.telephony
Class SmsManager

java.lang.Object
  extended by android.telephony.SmsManager

public final class SmsManager
extends java.lang.Object


Field Summary
static int RESULT_ERROR_GENERIC_FAILURE
           
static int RESULT_ERROR_NO_SERVICE
           
static int RESULT_ERROR_NULL_PDU
           
static int RESULT_ERROR_RADIO_OFF
           
static int STATUS_ON_ICC_FREE
           
static int STATUS_ON_ICC_READ
           
static int STATUS_ON_ICC_SENT
           
static int STATUS_ON_ICC_UNREAD
           
static int STATUS_ON_ICC_UNSENT
           
 
Method Summary
 java.util.ArrayList<java.lang.String> divideMessage(java.lang.String text)
           
static SmsManager getDefault()
           
 void sendDataMessage(java.lang.String destinationAddress, java.lang.String scAddress, short destinationPort, byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent)
           
 void sendMultipartTextMessage(java.lang.String destinationAddress, java.lang.String scAddress, java.util.ArrayList<java.lang.String> parts, java.util.ArrayList<PendingIntent> sentIntents, java.util.ArrayList<PendingIntent> deliveryIntents)
           
 void sendTextMessage(java.lang.String destinationAddress, java.lang.String scAddress, java.lang.String text, PendingIntent sentIntent, PendingIntent deliveryIntent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_ON_ICC_FREE

public static final int STATUS_ON_ICC_FREE
See Also:
Constant Field Values

STATUS_ON_ICC_READ

public static final int STATUS_ON_ICC_READ
See Also:
Constant Field Values

STATUS_ON_ICC_UNREAD

public static final int STATUS_ON_ICC_UNREAD
See Also:
Constant Field Values

STATUS_ON_ICC_SENT

public static final int STATUS_ON_ICC_SENT
See Also:
Constant Field Values

STATUS_ON_ICC_UNSENT

public static final int STATUS_ON_ICC_UNSENT
See Also:
Constant Field Values

RESULT_ERROR_GENERIC_FAILURE

public static final int RESULT_ERROR_GENERIC_FAILURE
See Also:
Constant Field Values

RESULT_ERROR_RADIO_OFF

public static final int RESULT_ERROR_RADIO_OFF
See Also:
Constant Field Values

RESULT_ERROR_NULL_PDU

public static final int RESULT_ERROR_NULL_PDU
See Also:
Constant Field Values

RESULT_ERROR_NO_SERVICE

public static final int RESULT_ERROR_NO_SERVICE
See Also:
Constant Field Values
Method Detail

sendTextMessage

public void sendTextMessage(java.lang.String destinationAddress,
                            java.lang.String scAddress,
                            java.lang.String text,
                            PendingIntent sentIntent,
                            PendingIntent deliveryIntent)

divideMessage

public java.util.ArrayList<java.lang.String> divideMessage(java.lang.String text)

sendMultipartTextMessage

public void sendMultipartTextMessage(java.lang.String destinationAddress,
                                     java.lang.String scAddress,
                                     java.util.ArrayList<java.lang.String> parts,
                                     java.util.ArrayList<PendingIntent> sentIntents,
                                     java.util.ArrayList<PendingIntent> deliveryIntents)

sendDataMessage

public void sendDataMessage(java.lang.String destinationAddress,
                            java.lang.String scAddress,
                            short destinationPort,
                            byte[] data,
                            PendingIntent sentIntent,
                            PendingIntent deliveryIntent)

getDefault

public static SmsManager getDefault()


Copyright © 2008-2010. All Rights Reserved.