Home > Mobile >  How do the android get SMS recipient's number, please
How do the android get SMS recipient's number, please

Time:10-04

As title, if it is a single card mobile phone, I can know the recipient's phone number,

But if it is double card mobile phone, how should I get corresponding message recipient phone number, is that the recipient is card 1 or 2?

Is there a API can get?

CodePudding user response:

https://developer.android.com/reference/android/provider/Telephony.Sms
Inbox database one SUBSCRIPTION_ID (sub_id) fields, this is to distinguish the card 1 card 2

CodePudding user response:

https://www.jianshu.com/p/1269e4ba99c9

CodePudding user response:

reference 1st floor conanluffy response:

https://developer.android.com/reference/android/provider/Telephony.SmsInbox database one SUBSCRIPTION_ID (sub_id) fields, this is to distinguish the card 1 2

This field is not accurate, now I see this field 6.0 the following machines, to 1,6.0 machines may be card slot ID and could be a real SIM card sub_id, when acquiring the call records also have sub_id, this ID also similarly is not accurate, very fan, just recently to do this, a little desperate
  • Related