android.telephony
Class SmsManager

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

public final class SmsManager
extends 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
 ArrayList<String> divideMessage(String text)
           
static SmsManager getDefault()
           
 void sendDataMessage(String destinationAddress, String scAddress, short destinationPort, byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent)
           
 void sendMultipartTextMessage(String destinationAddress, String scAddress, ArrayList<String> parts, ArrayList<PendingIntent> sentIntents, ArrayList<PendingIntent> deliveryIntents)
           
 void sendTextMessage(String destinationAddress, String scAddress, 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(String destinationAddress,
                            String scAddress,
                            String text,
                            PendingIntent sentIntent,
                            PendingIntent deliveryIntent)

divideMessage

public ArrayList<String> divideMessage(String text)

sendMultipartTextMessage

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

sendDataMessage

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

getDefault

public static SmsManager getDefault()


Copyright © 2008-2012. All Rights Reserved.