android.telephony
Class SmsMessage

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

public class SmsMessage
extends Object


Nested Class Summary
static classSmsMessage.MessageClass
           
static classSmsMessage.SubmitPdu
           
 
Field Summary
static intENCODING_16BIT
           
static intENCODING_7BIT
           
static intENCODING_8BIT
           
static intENCODING_UNKNOWN
           
static intMAX_USER_DATA_BYTES
           
static intMAX_USER_DATA_BYTES_WITH_HEADER
           
static intMAX_USER_DATA_SEPTETS
           
static intMAX_USER_DATA_SEPTETS_WITH_HEADER
           
 
Method Summary
static int[]calculateLength(CharSequence msgBody, boolean use7bitOnly)
           
static int[]calculateLength(String messageBody, boolean use7bitOnly)
           
static SmsMessagecreateFromPdu(byte[] pdu)
           
 StringgetDisplayMessageBody()
           
 StringgetDisplayOriginatingAddress()
           
 StringgetEmailBody()
           
 StringgetEmailFrom()
           
 intgetIndexOnIcc()
           
 intgetIndexOnSim()
          Deprecated. 
 StringgetMessageBody()
           
 SmsMessage.MessageClassgetMessageClass()
           
 StringgetOriginatingAddress()
           
 byte[]getPdu()
           
 intgetProtocolIdentifier()
           
 StringgetPseudoSubject()
           
 StringgetServiceCenterAddress()
           
 intgetStatus()
           
 intgetStatusOnIcc()
           
 intgetStatusOnSim()
          Deprecated. 
static SmsMessage.SubmitPdugetSubmitPdu(String scAddress, String destinationAddress, short destinationPort, byte[] data, boolean statusReportRequested)
           
static SmsMessage.SubmitPdugetSubmitPdu(String scAddress, String destinationAddress, String message, boolean statusReportRequested)
           
 longgetTimestampMillis()
           
static intgetTPLayerLengthForPDU(String pdu)
           
 byte[]getUserData()
           
 booleanisCphsMwiMessage()
           
 booleanisEmail()
           
 booleanisMWIClearMessage()
           
 booleanisMwiDontStore()
           
 booleanisMWISetMessage()
           
 booleanisReplace()
           
 booleanisReplyPathPresent()
           
 booleanisStatusReportMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODING_UNKNOWN

public static final int ENCODING_UNKNOWN
See Also:
Constant Field Values

ENCODING_7BIT

public static final int ENCODING_7BIT
See Also:
Constant Field Values

ENCODING_8BIT

public static final int ENCODING_8BIT
See Also:
Constant Field Values

ENCODING_16BIT

public static final int ENCODING_16BIT
See Also:
Constant Field Values

MAX_USER_DATA_BYTES

public static final int MAX_USER_DATA_BYTES
See Also:
Constant Field Values

MAX_USER_DATA_BYTES_WITH_HEADER

public static final int MAX_USER_DATA_BYTES_WITH_HEADER
See Also:
Constant Field Values

MAX_USER_DATA_SEPTETS

public static final int MAX_USER_DATA_SEPTETS
See Also:
Constant Field Values

MAX_USER_DATA_SEPTETS_WITH_HEADER

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

createFromPdu

public static SmsMessage createFromPdu(byte[] pdu)

getTPLayerLengthForPDU

public static int getTPLayerLengthForPDU(String pdu)

calculateLength

public static int[] calculateLength(CharSequence msgBody,                                    boolean use7bitOnly)

calculateLength

public static int[] calculateLength(String messageBody,                                    boolean use7bitOnly)

getSubmitPdu

public static SmsMessage.SubmitPdu getSubmitPdu(String scAddress,                                                String destinationAddress,                                                String message,                                                boolean statusReportRequested)

getSubmitPdu

public static SmsMessage.SubmitPdu getSubmitPdu(String scAddress,                                                String destinationAddress,                                                short destinationPort,                                                byte[] data,                                                boolean statusReportRequested)

getServiceCenterAddress

public String getServiceCenterAddress()

getOriginatingAddress

public String getOriginatingAddress()

getDisplayOriginatingAddress

public String getDisplayOriginatingAddress()

getMessageBody

public String getMessageBody()

getMessageClass

public SmsMessage.MessageClass getMessageClass()

getDisplayMessageBody

public String getDisplayMessageBody()

getPseudoSubject

public String getPseudoSubject()

getTimestampMillis

public long getTimestampMillis()

isEmail

public boolean isEmail()

getEmailBody

public String getEmailBody()

getEmailFrom

public String getEmailFrom()

getProtocolIdentifier

public int getProtocolIdentifier()

isReplace

public boolean isReplace()

isCphsMwiMessage

public boolean isCphsMwiMessage()

isMWIClearMessage

public boolean isMWIClearMessage()

isMWISetMessage

public boolean isMWISetMessage()

isMwiDontStore

public boolean isMwiDontStore()

getUserData

public byte[] getUserData()

getPdu

public byte[] getPdu()

getStatusOnSim

@Deprecatedpublic int getStatusOnSim()
Deprecated. 


getStatusOnIcc

public int getStatusOnIcc()

getIndexOnSim

@Deprecatedpublic int getIndexOnSim()
Deprecated. 


getIndexOnIcc

public int getIndexOnIcc()

getStatus

public int getStatus()

isStatusReportMessage

public boolean isStatusReportMessage()

isReplyPathPresent

public boolean isReplyPathPresent()


Copyright © 2008-2012. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14