|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISms
Interface for applications to access the SIM phone book.
The following code snippet demonstrates a static method to retrieve the ISimSms interface from Android:
private static ISimSms getSimSmsInterface()
throws DeadObjectException {
IServiceManager sm = ServiceManagerNative.getDefault();
ISimSms ss;
ss = ISimSms.Stub.asInterface(sm.getService("isms"));
return ss;
}
| Nested Class Summary | |
|---|---|
static class |
ISms.Stub
Local-side IPC implementation stub class. |
| Method Summary | |
|---|---|
boolean |
copyMessageToSimEf(int status,
byte[] pdu,
byte[] smsc)
Copy a raw SMS PDU to the SIM. |
List<com.android.internal.telephony.gsm.SmsRawData> |
getAllMessagesFromSimEf()
Retrieves all messages currently stored on SIM. |
void |
sendMultipartText(String destinationAddress,
String scAddress,
List<String> parts,
List<PendingIntent> sentIntents,
List<PendingIntent> deliveryIntents)
Send a multi-part text based SMS. |
void |
sendRawPdu(byte[] smsc,
byte[] pdu,
PendingIntent sentIntent,
PendingIntent deliveryIntent)
Send a SMS |
boolean |
updateMessageOnSimEf(int messageIndex,
int newStatus,
byte[] pdu)
Update the specified message on the SIM. |
| Methods inherited from interface android.os.IInterface |
|---|
asBinder |
| Method Detail |
|---|
List<com.android.internal.telephony.gsm.SmsRawData> getAllMessagesFromSimEf()
throws RemoteException
RemoteException
boolean updateMessageOnSimEf(int messageIndex,
int newStatus,
byte[] pdu)
throws RemoteException
messageIndex - record index of message to updatenewStatus - 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
RemoteException
boolean copyMessageToSimEf(int status,
byte[] pdu,
byte[] smsc)
throws RemoteException
pdu - the raw PDU to storestatus - message status (STATUS_ON_SIM_READ, STATUS_ON_SIM_UNREAD,
STATUS_ON_SIM_SENT, STATUS_ON_SIM_UNSENT)
RemoteException
void sendRawPdu(byte[] smsc,
byte[] pdu,
PendingIntent sentIntent,
PendingIntent deliveryIntent)
throws RemoteException
smsc - the SMSC to send the message through, or NULL for the
defatult SMSCpdu - the raw PDU to sendsentIntent - if not NULL this Intent is
broadcast when the message is sucessfully sent, or failed.
The result code will be Activity.RESULT_OK for success,
or one of these errors:
RESULT_ERROR_GENERIC_FAILURE
RESULT_ERROR_RADIO_OFF
RESULT_ERROR_NULL_PDU.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").
- Throws:
RemoteException
void sendMultipartText(String destinationAddress,
String scAddress,
List<String> parts,
List<PendingIntent> sentIntents,
List<PendingIntent> deliveryIntents)
throws RemoteException
destinationAddress - the address to send the message toscAddress - is the service center address or null to use
the current default SMSCparts - an ArrayList of strings that, in order,
comprise the original messagesentIntents - if not null, an ArrayList of
PendingIntents (one for each message part) that is
broadcast when the corresponding message part has been sent.
The result code will be Activity.RESULT_OK for success,
or one of these errors:
RESULT_ERROR_GENERIC_FAILURE
RESULT_ERROR_RADIO_OFF
RESULT_ERROR_NULL_PDU.deliveryIntents - if not null, an ArrayList of
PendingIntents (one for each message part) that is
broadcast when the corresponding message part has been delivered
to the recipient. The raw pdu of the status report is in the
extended data ("pdu").
- Throws:
RemoteException
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||