I have a default SMS messenger Android app that will receive binary and plain text messages. I need to determine if the received SMS is in binary or text to know how to send a message back to the original sender.
On 5.1 I can check the MessageBody for null. Null means it's binary. On 5.1.1 I don't see the same results. The MessageBody has junk from incorrect encoding. I receive the error messageBody is other binary data format encodingType=2
In the console.
Is there another way to determine if a SmsMessage is binary?
Thanks