ISmspublic interface ISms implements android.os.IInterfaceInterface for applications to access the ICC phone book.
The following code snippet demonstrates a static method to
retrieve the ISms interface from Android:
private static ISms getSmsInterface()
throws DeadObjectException {
IServiceManager sm = ServiceManagerNative.getDefault();
ISms ss;
ss = ISms.Stub.asInterface(sm.getService("isms"));
return ss;
}
|
Methods Summary |
---|
public boolean | copyMessageToIccEf(java.lang.String callingPkg, int status, byte[] pdu, byte[] smsc)Copy a raw SMS PDU to the ICC.
| public boolean | copyMessageToIccEfForSubscriber(int subId, java.lang.String callingPkg, int status, byte[] pdu, byte[] smsc)Copy a raw SMS PDU to the ICC.
| public boolean | disableCellBroadcast(int messageIdentifier, int ranType)Disable reception of cell broadcast (SMS-CB) messages with the given
message identifier and RAN type. The RAN type specify this message ID
belong to 3GPP (GSM) or 3GPP2(CDMA). Note that if two different clients
enable the same message identifier, they must both disable it for the
device to stop receiving those messages.
| public boolean | disableCellBroadcastForSubscriber(int subId, int messageIdentifier, int ranType)Disable reception of cell broadcast (SMS-CB) messages with the given
message identifier and RAN type. The RAN type specify this message ID
belong to 3GPP (GSM) or 3GPP2(CDMA). Note that if two different clients
enable the same message identifier, they must both disable it for the
device to stop receiving those messages.
| public boolean | disableCellBroadcastRange(int startMessageId, int endMessageId, int ranType)Disable reception of cell broadcast (SMS-CB) messages with the given
message identifier range and RAN type. The RAN type specify this message ID range
belong to 3GPP (GSM) or 3GPP2(CDMA). Note that if two different clients enable
a message identifier range, they must both disable it for the device
to stop receiving those messages.
| public boolean | disableCellBroadcastRangeForSubscriber(int subId, int startMessageId, int endMessageId, int ranType)Disable reception of cell broadcast (SMS-CB) messages with the given
message identifier range and RAN type. The RAN type specify this message ID range
belong to 3GPP (GSM) or 3GPP2(CDMA). Note that if two different clients enable
a message identifier range, they must both disable it for the device
to stop receiving those messages.
| public boolean | enableCellBroadcast(int messageIdentifier, int ranType)Enable reception of cell broadcast (SMS-CB) messages with the given
message identifier and RAN type. The RAN type specify this message ID
belong to 3GPP (GSM) or 3GPP2(CDMA). Note that if two different clients
enable the same message identifier, they must both disable it for the
device to stop receiving those messages.
| public boolean | enableCellBroadcastForSubscriber(int subId, int messageIdentifier, int ranType)Enable reception of cell broadcast (SMS-CB) messages with the given
message identifier and RAN type. The RAN type specify this message ID
belong to 3GPP (GSM) or 3GPP2(CDMA). Note that if two different clients
enable the same message identifier, they must both disable it for the
device to stop receiving those messages.
| public boolean | enableCellBroadcastRange(int startMessageId, int endMessageId, int ranType)
| public boolean | enableCellBroadcastRangeForSubscriber(int subId, int startMessageId, int endMessageId, int ranType)
| public java.util.List | getAllMessagesFromIccEf(java.lang.String callingPkg)Retrieves all messages currently stored on ICC.
| public java.util.List | getAllMessagesFromIccEfForSubscriber(int subId, java.lang.String callingPkg)Retrieves all messages currently stored on ICC.
| public java.lang.String | getImsSmsFormat()Gets SMS format supported on IMS. SMS over IMS format is
either 3GPP or 3GPP2.
| public java.lang.String | getImsSmsFormatForSubscriber(int subId)Gets SMS format supported on IMS. SMS over IMS format is
either 3GPP or 3GPP2.
| public int | getPreferredSmsSubscription()
| public int | getPremiumSmsPermission(java.lang.String packageName)Returns the premium SMS send permission for the specified package.
Requires system permission.
| public int | getPremiumSmsPermissionForSubscriber(int subId, java.lang.String packageName)Returns the premium SMS send permission for the specified package.
Requires system permission.
| public void | injectSmsPdu(byte[] pdu, java.lang.String format, android.app.PendingIntent receivedIntent)Inject an SMS PDU into the android platform.
| public boolean | isImsSmsSupported()SMS over IMS is supported if IMS is registered and SMS is supported
on IMS.
| public boolean | isImsSmsSupportedForSubscriber(int subId)SMS over IMS is supported if IMS is registered and SMS is supported
on IMS.
| public boolean | isSMSPromptEnabled()
| public boolean | isSmsSimPickActivityNeeded(int subId)User needs to pick SIM for SMS if multiple SIMs present and if current subId passed in is not
active/valid.
| public void | sendData(java.lang.String callingPkg, java.lang.String destAddr, java.lang.String scAddr, int destPort, byte[] data, android.app.PendingIntent sentIntent, android.app.PendingIntent deliveryIntent)Send a data SMS.
| public void | sendDataForSubscriber(int subId, java.lang.String callingPkg, java.lang.String destAddr, java.lang.String scAddr, int destPort, byte[] data, android.app.PendingIntent sentIntent, android.app.PendingIntent deliveryIntent)Send a data SMS.
| public void | sendMultipartText(java.lang.String callingPkg, java.lang.String destinationAddress, java.lang.String scAddress, java.util.List parts, java.util.List sentIntents, java.util.List deliveryIntents)Send a multi-part text based SMS.
| public void | sendMultipartTextForSubscriber(int subId, java.lang.String callingPkg, java.lang.String destinationAddress, java.lang.String scAddress, java.util.List parts, java.util.List sentIntents, java.util.List deliveryIntents)Send a multi-part text based SMS.
| public void | sendStoredMultipartText(int subId, java.lang.String callingPkg, android.net.Uri messageUri, java.lang.String scAddress, java.util.List sentIntents, java.util.List deliveryIntents)Send a system stored multi-part text message.
This is used for sending a previously sent, but failed-to-send, message or
for sending a text message that has been stored as a draft.
The provided PendingIntent lists should match the part number of the
divided text of the stored message by using divideMessage
| public void | sendStoredText(int subId, java.lang.String callingPkg, android.net.Uri messageUri, java.lang.String scAddress, android.app.PendingIntent sentIntent, android.app.PendingIntent deliveryIntent)Send a system stored text message.
This is used for sending a previously sent, but failed-to-send, message or
for sending a text message that has been stored as a draft.
| public void | sendText(java.lang.String callingPkg, java.lang.String destAddr, java.lang.String scAddr, java.lang.String text, android.app.PendingIntent sentIntent, android.app.PendingIntent deliveryIntent)Send an SMS.
| public void | sendTextForSubscriber(int subId, java.lang.String callingPkg, java.lang.String destAddr, java.lang.String scAddr, java.lang.String text, android.app.PendingIntent sentIntent, android.app.PendingIntent deliveryIntent)Send an SMS.
| public void | setPremiumSmsPermission(java.lang.String packageName, int permission)Set the SMS send permission for the specified package.
Requires system permission.
| public void | setPremiumSmsPermissionForSubscriber(int subId, java.lang.String packageName, int permission)Set the SMS send permission for the specified package.
Requires system permission.
| public boolean | updateMessageOnIccEf(java.lang.String callingPkg, int messageIndex, int newStatus, byte[] pdu)Update the specified message on the ICC.
| public boolean | updateMessageOnIccEfForSubscriber(int subId, java.lang.String callingPkg, int messageIndex, int newStatus, byte[] pdu)Update the specified message on the ICC.
|
|