English | Site Directory

Android - An Open Handset Alliance Project

android.telephony.gsm
public class

android.telephony.gsm.SmsHeader

java.lang.Object
android.telephony.gsm.SmsHeader

This class represents a SMS user data header.

Nested Classes
SmsHeader.Element A single Element in the SMS User Data Header. 

Summary

Constants

      Value  
int  APPLICATION_PORT_ADDRESSING_16_BIT  See TS 23.040 9.2.3.24 for description of this element ID.  0x00000005 
int  APPLICATION_PORT_ADDRESSING_8_BIT  See TS 23.040 9.2.3.24 for description of this element ID.  0x00000004 
int  CONCATENATED_16_BIT_REFERENCE  See TS 23.040 9.2.3.24 for description of this element ID.  0x00000008 
int  CONCATENATED_8_BIT_REFERENCE  See TS 23.040 9.2.3.24 for description of this element ID.  0x00000000 
int  PORT_WAP_PUSH    2948  0x00000b84 
int  PORT_WAP_WSP    9200  0x000023f0 
int  SPECIAL_SMS_MESSAGE_INDICATION  See TS 23.040 9.2.3.24 for description of this element ID.  0x00000001 

Public Constructors

          SmsHeader()

Public Methods

        void  add(Element element)
Add an element to the SmsHeader.
        ArrayList  getElements()
Returns the list of SmsHeader Elements that make up the header.
      static  SmsHeader  parse(byte[] data)
Creates an SmsHeader object from raw user data header bytes.
        String  toString()
Answers a string containing a concise, human-readable description of the receiver.
Methods inherited from class java.lang.Object

Details

Constants

public static final int APPLICATION_PORT_ADDRESSING_16_BIT

See TS 23.040 9.2.3.24 for description of this element ID.
Constant Value: 5 (0x00000005)

public static final int APPLICATION_PORT_ADDRESSING_8_BIT

See TS 23.040 9.2.3.24 for description of this element ID.
Constant Value: 4 (0x00000004)

public static final int CONCATENATED_16_BIT_REFERENCE

See TS 23.040 9.2.3.24 for description of this element ID.
Constant Value: 8 (0x00000008)

public static final int CONCATENATED_8_BIT_REFERENCE

See TS 23.040 9.2.3.24 for description of this element ID.
Constant Value: 0 (0x00000000)

public static final int PORT_WAP_PUSH

Constant Value: 2948 (0x00000b84)

public static final int PORT_WAP_WSP

Constant Value: 9200 (0x000023f0)

public static final int SPECIAL_SMS_MESSAGE_INDICATION

See TS 23.040 9.2.3.24 for description of this element ID.
Constant Value: 1 (0x00000001)

Public Constructors

public SmsHeader()

Public Methods

public void add(Element element)

Add an element to the SmsHeader.

Parameters

element to add.

public ArrayList getElements()

Returns the list of SmsHeader Elements that make up the header.

Returns

  • the list of SmsHeader Elements.

public static SmsHeader parse(byte[] data)

Creates an SmsHeader object from raw user data header bytes.

Parameters

data is user data header bytes

Returns

  • an SmsHeader object

public String toString()

Answers a string containing a concise, human-readable description of the receiver.
Build m5-rc15g - 14 May 2008 12:50