English | Site Directory

Android - An Open Handset Alliance Project

android.telephony.gsm
public class

android.telephony.gsm.SimSmsInterfaceManager

java.lang.Object
android.os.Binder IBinder
android.telephony.gsm.ISms.Stub ISms
android.telephony.gsm.SimSmsInterfaceManager

SimSmsInterfaceManager to provide an inter-process communication to access Sms in Sim.

Summary

Constants inherited from interface android.os.IBinder

Public Constructors

          SimSmsInterfaceManager(GSMPhone phone)

Public Methods

        boolean  copyMessageToSimEf(int status, byte[] pdu, byte[] smsc)
Copy a raw SMS PDU to the SIM.
        List  getAllMessagesFromSimEf()
Retrieves all messages currently stored on SIM.
        void  sendRawPdu(byte[] smsc, byte[] pdu, Intent sentIntent, Intent deliveryIntent, Intent failedIntent)
Send a Raw PDU SMS
        boolean  updateMessageOnSimEf(int index, int status, byte[] pdu)
Update the specified message on the SIM.
Methods inherited from class android.telephony.gsm.ISms.Stub
Methods inherited from class android.os.Binder
Methods inherited from class java.lang.Object
Methods inherited from interface android.telephony.gsm.ISms
Methods inherited from interface android.os.IInterface
Methods inherited from interface android.os.IBinder

Details

Public Constructors

public SimSmsInterfaceManager(GSMPhone phone)

Public Methods

public boolean copyMessageToSimEf(int status, byte[] pdu, byte[] smsc)

Copy a raw SMS PDU to the SIM.

Parameters

status message status (STATUS_ON_SIM_READ, STATUS_ON_SIM_UNREAD, STATUS_ON_SIM_SENT, STATUS_ON_SIM_UNSENT)
pdu the raw PDU to store

Returns

  • success or not

public List getAllMessagesFromSimEf()

Retrieves all messages currently stored on SIM.

Returns

  • list of SmsRawData of all sms on SIM

public void sendRawPdu(byte[] smsc, byte[] pdu, Intent sentIntent, Intent deliveryIntent, Intent failedIntent)

Send a Raw PDU SMS

Parameters

smsc the SMSC to send the message through, or NULL for the defatult SMSC
pdu the raw PDU to send
sentIntent if not NULL this Intent is broadcast when the message is sucessfully sent
deliveryIntent if not NULL this Intent is broadcast when the message is delivered to the recipient. The raw pdu of the status report is in the extended data ("pdu").
failedIntent if not NULL this Intent is broadcast to indicate send failure. Error cause is in the extended data ("error"), and will be either ERROR_GENERIC_FAILURE or ERROR_RADIO_OFF ERROR_NULL_PDU.

public boolean updateMessageOnSimEf(int index, int status, byte[] pdu)

Update the specified message on the SIM.

Parameters

index record index of message to update
status new message status (STATUS_ON_SIM_READ, STATUS_ON_SIM_UNREAD, STATUS_ON_SIM_SENT, STATUS_ON_SIM_UNSENT, STATUS_ON_SIM_FREE)
pdu the raw PDU to store

Returns

  • success or not
Build m5-rc15g - 14 May 2008 12:50