Java Code Examples for android.telephony.SmsMessage#getProtocolIdentifier()
The following examples show how to use
android.telephony.SmsMessage#getProtocolIdentifier() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IncomingTextMessage.java From mollyim-android with GNU General Public License v3.0 | 6 votes |
public IncomingTextMessage(@NonNull RecipientId sender, @NonNull SmsMessage message, int subscriptionId) { this.message = message.getDisplayMessageBody(); this.sender = sender; this.senderDeviceId = SignalServiceAddress.DEFAULT_DEVICE_ID; this.protocol = message.getProtocolIdentifier(); this.serviceCenterAddress = message.getServiceCenterAddress(); this.replyPathPresent = message.isReplyPathPresent(); this.pseudoSubject = message.getPseudoSubject(); this.sentTimestampMillis = message.getTimestampMillis(); this.serverTimestampMillis = -1; this.subscriptionId = subscriptionId; this.expiresInMillis = 0; this.groupId = null; this.push = false; this.unidentified = false; }
Example 2
Source File: IncomingTextMessage.java From bcm-android with GNU General Public License v3.0 | 6 votes |
public IncomingTextMessage(@NonNull AccountContext accountContext, @NonNull SmsMessage message, int subscriptionId) { this.message = message.getDisplayMessageBody(); this.payloadType = parseBodyPayloadType(this.message); this.sender = Address.from(accountContext, message.getDisplayOriginatingAddress()); this.senderDeviceId = SignalServiceAddress.DEFAULT_DEVICE_ID; this.protocol = message.getProtocolIdentifier(); this.serviceCenterAddress = message.getServiceCenterAddress(); this.replyPathPresent = message.isReplyPathPresent(); this.pseudoSubject = message.getPseudoSubject(); this.sentTimestampMillis = message.getTimestampMillis(); this.subscriptionId = subscriptionId; this.expiresInMillis = 0; this.groupId = null; this.push = false; }
Example 3
Source File: IncomingTextMessage.java From Silence with GNU General Public License v3.0 | 5 votes |
public IncomingTextMessage(SmsMessage message, int subscriptionId, boolean receivedWhenLocked) { this.message = message.getDisplayMessageBody(); this.sender = message.getDisplayOriginatingAddress(); this.senderDeviceId = 1; this.protocol = message.getProtocolIdentifier(); this.serviceCenterAddress = message.getServiceCenterAddress(); this.replyPathPresent = message.isReplyPathPresent(); this.pseudoSubject = message.getPseudoSubject(); this.sentTimestampMillis = message.getTimestampMillis(); this.subscriptionId = subscriptionId; this.groupId = null; this.push = false; this.receivedWhenLocked = receivedWhenLocked; }