I am trying to read received SMS using below code, it is working below API level 23, but in API level 23 createFromPdu method is deprecated. In google docs it h
createFromPdu
You can extract "format" from the intent's extra and pass it to SmsMessage.createFromPdu. The format is added here, just before the dispatch.
"format"
SmsMessage.createFromPdu