Android Question Send message with 2and sim card

dimasarfin

New Member
Licensed User
yes i have,but i can't try it on my phone because i can't find source send message with 2and sim
hi erel, do you have simple source to send message with 2and sim ?
I've tried to send message with simple source one sim and succes, For dual sim i've not tried
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Start with this code.

What is the output:
B4X:
Dim p As PhoneId 'ignore, required for the permission
Dim ctxt As JavaObject
ctxt.InitializeContext
Dim SubscriptionManager As JavaObject = ctxt.RunMethod("getSystemService", Array("telephony_subscription_service"))
Dim infolist As List = SubscriptionManager.RunMethod("getActiveSubscriptionInfoList", Null)
For Each info As JavaObject In infolist
   Log(info)
   Log(info.RunMethod("getSubscriptionId", Null))
Next
 
Upvote 0
Top