android.telephony.gsm.SmsHeader
This class represents a SMS user data header.
Nested Classes
Summary
Constants
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
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 Methods
public
void
add(Element element)
Add an element to the SmsHeader.
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 |
public
String
toString()
Answers a string containing a concise, human-readable description of the
receiver.