IT. Expert System.

Android Reference

SmsMessage


android.telephony.gsm

Class SmsMessage


  • Deprecated.
    Replaced by android.telephony.SmsMessage that supports both GSM and CDMA.

    @Deprecated
    public class SmsMessage
    extends Object
    A Short Message Service message.
    • Field Detail

      • ENCODING_UNKNOWN

        @Deprecated
        public static final int ENCODING_UNKNOWN
        Deprecated. Use android.telephony.SmsMessage.
        Unknown encoding scheme (see TS 23.038)
        See Also:
        Constant Field Values
      • ENCODING_7BIT

        @Deprecated
        public static final int ENCODING_7BIT
        Deprecated. Use android.telephony.SmsMessage.
        7-bit encoding scheme (see TS 23.038)
        See Also:
        Constant Field Values
      • ENCODING_8BIT

        @Deprecated
        public static final int ENCODING_8BIT
        Deprecated. Use android.telephony.SmsMessage.
        8-bit encoding scheme (see TS 23.038)
        See Also:
        Constant Field Values
      • ENCODING_16BIT

        @Deprecated
        public static final int ENCODING_16BIT
        Deprecated. Use android.telephony.SmsMessage.
        16-bit encoding scheme (see TS 23.038)
        See Also:
        Constant Field Values
      • MAX_USER_DATA_BYTES

        @Deprecated
        public static final int MAX_USER_DATA_BYTES
        Deprecated. Use android.telephony.SmsMessage.
        The maximum number of payload bytes per message
        See Also:
        Constant Field Values
      • MAX_USER_DATA_BYTES_WITH_HEADER

        @Deprecated
        public static final int MAX_USER_DATA_BYTES_WITH_HEADER
        Deprecated. Use android.telephony.SmsMessage.
        The maximum number of payload bytes per message if a user data header is present. This assumes the header only contains the CONCATENATED_8_BIT_REFERENCE element.
        See Also:
        Constant Field Values
      • MAX_USER_DATA_SEPTETS

        @Deprecated
        public static final int MAX_USER_DATA_SEPTETS
        Deprecated. Use android.telephony.SmsMessage.
        The maximum number of payload septets per message
        See Also:
        Constant Field Values
      • MAX_USER_DATA_SEPTETS_WITH_HEADER

        @Deprecated
        public static final int MAX_USER_DATA_SEPTETS_WITH_HEADER
        Deprecated. Use android.telephony.SmsMessage.
        The maximum number of payload septets per message if a user data header is present. This assumes the header only contains the CONCATENATED_8_BIT_REFERENCE element.
        See Also:
        Constant Field Values
      • mWrappedSmsMessage

        @Deprecated
        public com.android.internal.telephony.SmsMessageBase mWrappedSmsMessage
        Deprecated. Use android.telephony.SmsMessage.
        Contains actual SmsMessage. Only public for debugging and for framework layer.
    • Constructor Detail

      • SmsMessage

        @Deprecated
        public SmsMessage()
        Deprecated. Use android.telephony.SmsMessage.
    • Method Detail

      • createFromPdu

        @Deprecated
        public static SmsMessage createFromPdu(byte[] pdu)
        Deprecated. Use android.telephony.SmsMessage.
        Create an SmsMessage from a raw PDU.
      • getTPLayerLengthForPDU

        @Deprecated
        public static int getTPLayerLengthForPDU(String pdu)
        Deprecated. Use android.telephony.SmsMessage.
        Get the TP-Layer-Length for the given SMS-SUBMIT PDU Basically, the length in bytes (not hex chars) less the SMSC header
      • calculateLength

        @Deprecated
        public static int[] calculateLength(CharSequence messageBody,
                                       boolean use7bitOnly)
        Deprecated. Use android.telephony.SmsMessage.
        Calculates the number of SMS's required to encode the message body and the number of characters remaining until the next message, given the current encoding.
        Parameters:
        messageBody - the message to encode
        use7bitOnly - if true, characters that are not part of the GSM alphabet are counted as a single space char. If false, a messageBody containing non-GSM alphabet characters is calculated for 16-bit encoding.
        Returns:
        an int[4] with int[0] being the number of SMS's required, int[1] the number of code units used, and int[2] is the number of code units remaining until the next message. int[3] is the encoding type that should be used for the message.
      • calculateLength

        @Deprecated
        public static int[] calculateLength(String messageBody,
                                       boolean use7bitOnly)
        Deprecated. Use android.telephony.SmsMessage.
        Calculates the number of SMS's required to encode the message body and the number of characters remaining until the next message, given the current encoding.
        Parameters:
        messageBody - the message to encode
        use7bitOnly - if true, characters that are not part of the GSM alphabet are counted as a single space char. If false, a messageBody containing non-GSM alphabet characters is calculated for 16-bit encoding.
        Returns:
        an int[4] with int[0] being the number of SMS's required, int[1] the number of code units used, and int[2] is the number of code units remaining until the next message. int[3] is the encoding type that should be used for the message.
      • getSubmitPdu

        @Deprecated
        public static SmsMessage.SubmitPdu getSubmitPdu(String scAddress,
                                                   String destinationAddress,
                                                   String message,
                                                   boolean statusReportRequested,
                                                   byte[] header)
        Deprecated. Use android.telephony.SmsMessage.
        Get an SMS-SUBMIT PDU for a destination address and a message
        Parameters:
        scAddress - Service Centre address. Null means use default.
        Returns:
        a SubmitPdu containing the encoded SC address, if applicable, and the encoded message. Returns null on encode error.
      • getSubmitPdu

        @Deprecated
        public static SmsMessage.SubmitPdu getSubmitPdu(String scAddress,
                                                   String destinationAddress,
                                                   String message,
                                                   boolean statusReportRequested)
        Deprecated. Use android.telephony.SmsMessage.
        Get an SMS-SUBMIT PDU for a destination address and a message
        Parameters:
        scAddress - Service Centre address. Null means use default.
        Returns:
        a SubmitPdu containing the encoded SC address, if applicable, and the encoded message. Returns null on encode error.
      • getSubmitPdu

        @Deprecated
        public static SmsMessage.SubmitPdu getSubmitPdu(String scAddress,
                                                   String destinationAddress,
                                                   short destinationPort,
                                                   byte[] data,
                                                   boolean statusReportRequested)
        Deprecated. Use android.telephony.SmsMessage.
        Get an SMS-SUBMIT PDU for a data message to a destination address & port
        Parameters:
        scAddress - Service Centre address. null == use default
        destinationAddress - the address of the destination for the message
        destinationPort - the port to deliver the message to at the destination
        data - the dat for the message
        Returns:
        a SubmitPdu containing the encoded SC address, if applicable, and the encoded message. Returns null on encode error.
      • getServiceCenterAddress

        @Deprecated
        public String getServiceCenterAddress()
        Deprecated. Use android.telephony.SmsMessage.
        Returns the address of the SMS service center that relayed this message or null if there is none.
      • getOriginatingAddress

        @Deprecated
        public String getOriginatingAddress()
        Deprecated. Use android.telephony.SmsMessage.
        Returns the originating address (sender) of this SMS message in String form or null if unavailable
      • getDisplayOriginatingAddress

        @Deprecated
        public String getDisplayOriginatingAddress()
        Deprecated. Use android.telephony.SmsMessage.
        Returns the originating address, or email from address if this message was from an email gateway. Returns null if originating address unavailable.
      • getMessageBody

        @Deprecated
        public String getMessageBody()
        Deprecated. Use android.telephony.SmsMessage.
        Returns the message body as a String, if it exists and is text based.
        Returns:
        message body is there is one, otherwise null
      • getDisplayMessageBody

        @Deprecated
        public String getDisplayMessageBody()
        Deprecated. Use android.telephony.SmsMessage.
        Returns the message body, or email message body if this message was from an email gateway. Returns null if message body unavailable.
      • getPseudoSubject

        @Deprecated
        public String getPseudoSubject()
        Deprecated. Use android.telephony.SmsMessage.
        Unofficial convention of a subject line enclosed in parens empty string if not present
      • getTimestampMillis

        @Deprecated
        public long getTimestampMillis()
        Deprecated. Use android.telephony.SmsMessage.
        Returns the service centre timestamp in currentTimeMillis() format
      • isEmail

        @Deprecated
        public boolean isEmail()
        Deprecated. Use android.telephony.SmsMessage.
        Returns true if message is an email.
        Returns:
        true if this message came through an email gateway and email sender / subject / parsed body are available
      • getEmailBody

        @Deprecated
        public String getEmailBody()
        Deprecated. Use android.telephony.SmsMessage.
        Returns:
        if isEmail() is true, body of the email sent through the gateway. null otherwise
      • getEmailFrom

        @Deprecated
        public String getEmailFrom()
        Deprecated. Use android.telephony.SmsMessage.
        Returns:
        if isEmail() is true, email from address of email sent through the gateway. null otherwise
      • getProtocolIdentifier

        @Deprecated
        public int getProtocolIdentifier()
        Deprecated. Use android.telephony.SmsMessage.
        Get protocol identifier.
      • isReplace

        @Deprecated
        public boolean isReplace()
        Deprecated. Use android.telephony.SmsMessage.
        See TS 23.040 9.2.3.9 returns true if this is a "replace short message" SMS
      • isCphsMwiMessage

        @Deprecated
        public boolean isCphsMwiMessage()
        Deprecated. Use android.telephony.SmsMessage.
        Returns true for CPHS MWI toggle message.
        Returns:
        true if this is a CPHS MWI toggle message See CPHS 4.2 section B.4.2
      • isMWIClearMessage

        @Deprecated
        public boolean isMWIClearMessage()
        Deprecated. Use android.telephony.SmsMessage.
        returns true if this message is a CPHS voicemail / message waiting indicator (MWI) clear message
      • isMWISetMessage

        @Deprecated
        public boolean isMWISetMessage()
        Deprecated. Use android.telephony.SmsMessage.
        returns true if this message is a CPHS voicemail / message waiting indicator (MWI) set message
      • isMwiDontStore

        @Deprecated
        public boolean isMwiDontStore()
        Deprecated. Use android.telephony.SmsMessage.
        returns true if this message is a "Message Waiting Indication Group: Discard Message" notification and should not be stored.
      • getUserData

        @Deprecated
        public byte[] getUserData()
        Deprecated. Use android.telephony.SmsMessage.
        returns the user data section minus the user data header if one was present.
      • getPdu

        @Deprecated
        public byte[] getPdu()
        Deprecated. Use android.telephony.SmsMessage.
        Returns the raw PDU for the message.
        Returns:
        the raw PDU for the message.
      • getStatusOnSim

        @Deprecated
        public int getStatusOnSim()
        Deprecated. Use android.telephony.SmsMessage and getStatusOnIcc instead.
        Returns the status of the message on the SIM (read, unread, sent, unsent).
        Returns:
        the status of the message on the SIM. These are: SmsManager.STATUS_ON_SIM_FREE SmsManager.STATUS_ON_SIM_READ SmsManager.STATUS_ON_SIM_UNREAD SmsManager.STATUS_ON_SIM_SEND SmsManager.STATUS_ON_SIM_UNSENT
      • getStatusOnIcc

        @Deprecated
        public int getStatusOnIcc()
        Deprecated. Use android.telephony.SmsMessage.
        Returns the status of the message on the ICC (read, unread, sent, unsent).
        Returns:
        the status of the message on the ICC. These are: SmsManager.STATUS_ON_ICC_FREE SmsManager.STATUS_ON_ICC_READ SmsManager.STATUS_ON_ICC_UNREAD SmsManager.STATUS_ON_ICC_SEND SmsManager.STATUS_ON_ICC_UNSENT
      • getIndexOnSim

        @Deprecated
        public int getIndexOnSim()
        Deprecated. Use android.telephony.SmsMessage and getIndexOnIcc instead.
        Returns the record index of the message on the SIM (1-based index).
        Returns:
        the record index of the message on the SIM, or -1 if this SmsMessage was not created from a SIM SMS EF record.
      • getIndexOnIcc

        @Deprecated
        public int getIndexOnIcc()
        Deprecated. Use android.telephony.SmsMessage.
        Returns the record index of the message on the ICC (1-based index).
        Returns:
        the record index of the message on the ICC, or -1 if this SmsMessage was not created from a ICC SMS EF record.
      • getStatus

        @Deprecated
        public int getStatus()
        Deprecated. Use android.telephony.SmsMessage.
        GSM: For an SMS-STATUS-REPORT message, this returns the status field from the status report. This field indicates the status of a previously submitted SMS, if requested. See TS 23.040, 9.2.3.15 TP-Status for a description of values. CDMA: For not interfering with status codes from GSM, the value is shifted to the bits 31-16. The value is composed of an error class (bits 25-24) and a status code (bits 23-16). Possible codes are described in C.S0015-B, v2.0, 4.5.21.
        Returns:
        0 indicates the previously sent message was received. See TS 23.040, 9.9.2.3.15 and C.S0015-B, v2.0, 4.5.21 for a description of other possible values.
      • isStatusReportMessage

        @Deprecated
        public boolean isStatusReportMessage()
        Deprecated. Use android.telephony.SmsMessage.
        Return true iff the message is a SMS-STATUS-REPORT message.
      • isReplyPathPresent

        @Deprecated
        public boolean isReplyPathPresent()
        Deprecated. Use android.telephony.SmsMessage.
        Returns true iff the TP-Reply-Path bit is set in this message.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 586 / . Delta: 0.04139 с