SmsMessage.GetTPLayerLengthForPDU(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get the TP-Layer-Length for the given SMS-SUBMIT PDU Basically, the length in bytes (not hex chars) less the SMSC header
[Android.Runtime.Register("getTPLayerLengthForPDU", "(Ljava/lang/String;)I", "")]
public static int GetTPLayerLengthForPDU(string? pdu);
[<Android.Runtime.Register("getTPLayerLengthForPDU", "(Ljava/lang/String;)I", "")>]
static member GetTPLayerLengthForPDU : string -> int
Parameters
- pdu
- String
The hexadecimal PDU text whose transport-layer length is to be calculated.
Returns
On Android API 37.2, the PDU's transport-layer length in bytes, excluding the service-center header, if the voice phone type is not CDMA; otherwise, zero.
- Attributes
Remarks
Get the TP-Layer-Length for the given SMS-SUBMIT PDU Basically, the length in bytes (not hex chars) less the SMSC header
FIXME: This method is only used by a CTS test case that isn't run on CDMA devices. We should probably deprecate it and remove the obsolete test case.
Java documentation for android.telephony.SmsMessage.getTPLayerLengthForPDU(java.lang.String).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.