|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object OEM com.motorola.oem.network.NetworkUSSD
public class NetworkUSSD
Provides Unstructured Supplementary Service Data(USSD) service.
Field Summary | |
---|---|
static byte |
NETWORK_USSD_DCS_GSM_7BIT
Data Coding Scheme - 7 bit. |
static byte |
NETWORK_USSD_DCS_GSM_8BIT
Data Coding Scheme - 8 bit. |
static byte |
NETWORK_USSD_DCS_UCS2
Data Coding Scheme - UCS2 (16 bit). |
static byte |
NETWORK_USSD_DCS_UCS2_LANGUAGE_INDICATOR
Data Coding Scheme - UCS2 (16 bit), USSD string preceded by language indicator. |
Method Summary | |
---|---|
static NetworkUSSD |
getInstance()
Returns a reference to the class's single instance. |
boolean |
isDcsSupported(byte dcs)
Checks whether the type of Data Coding Scheme(DCS) is supported. |
void |
sendUSSD(java.lang.String stringToSend)
Send a USSD string to the network. |
void |
sendUSSD(java.lang.String stringToSend,
byte dcs)
Send a USSD string to the network according to specified data coding scheme. |
void |
setNetworkUSSDListener(NetworkUSSDListener listener)
Set a listener for USSD events. |
void |
terminateUSSD()
Send a request to terminate a USSD transaction. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte NETWORK_USSD_DCS_UCS2
public static final byte NETWORK_USSD_DCS_UCS2_LANGUAGE_INDICATOR
public static final byte NETWORK_USSD_DCS_GSM_8BIT
public static final byte NETWORK_USSD_DCS_GSM_7BIT
Method Detail |
---|
public static NetworkUSSD getInstance() throws NetworkUSSDException
NetworkUSSDException
- Failed to construct the NetworkUSSD object.public boolean isDcsSupported(byte dcs)
dcs
- data coding scheme according to GSM spec.
public void sendUSSD(java.lang.String stringToSend, byte dcs) throws NetworkUSSDException
NetworkUSSDListener
should be registered to receive network USSD response data (NetworkUSSDResponseData
).
stringToSend
- contains the USSD string sent to the networkdcs
- Data Coding Scheme, determines how to encode stringToSend NetworkUSSDException
- Platform error (error code NetworkUSSDException.PLATFORM_ERROR
)
NetworkUSSDException
- Request string syntax error(error code NetworkUSSDException.SYNTAX_ERROR
)
NetworkUSSDException
- Data coding scheme is not supported (error code NetworkUSSDException.UNSUPPORTED_DCS_ERROR
)setNetworkUSSDListener(com.motorola.oem.network.NetworkUSSDListener)
,
NetworkUSSDListener.onNetworkUSSDResponseArrived(com.motorola.oem.network.NetworkUSSDResponseData)
public void sendUSSD(java.lang.String stringToSend) throws NetworkUSSDException
NetworkUSSDListener
should be registered to receive network response data (NetworkUSSDResponseData
).
stringToSend
- contains the USSD string sent to the network in NETWORK_USSD_DCS_GSM_7BIT
data coding scheme
NetworkUSSDException
- Platform error (error code NetworkUSSDException.PLATFORM_ERROR
)
NetworkUSSDException
- Request string syntax error(error code NetworkUSSDException.SYNTAX_ERROR
)
NetworkUSSDException
- Data Coding Scheme is not supported (error code NetworkUSSDException.UNSUPPORTED_DCS_ERROR
)setNetworkUSSDListener(com.motorola.oem.network.NetworkUSSDListener)
,
NetworkUSSDListener.onNetworkUSSDResponseArrived(com.motorola.oem.network.NetworkUSSDResponseData)
public void setNetworkUSSDListener(NetworkUSSDListener listener)
listener
- External listener object to receive USSD events.
Setting null listener will cause masking of USSD events.public void terminateUSSD()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |