Android Question Change default SIM slot on dual SIM devices

viljemto

Member
Licensed User
Longtime User
Hi!

We can send USSD (or MMI) command with ACTION_CALL, "tel:"

With HTC devices it send with default sim - last one used.
i.putExtra("simSlot", 0) is not working

To solve this, I was thinking if there is any way to change currently default SIM slot.

Does anybody have any experiences with changing system settings?


B4X:
SIM slot 1:
D/PhoneInterfaceManager(  770): [PhoneIntfMgr] phonetype=1 eccPhoneType=1
D/PhoneInterfaceManager(  770): [PhoneIntfMgr] dialWithoutDelay() phoneType=1
D/PhoneNumberUtils(  770): mPreferredPhoneType= 1

SIM slot 2:
D/PhoneInterfaceManager(  770): [PhoneIntfMgr] phonetype=5 eccPhoneType=5
D/PhoneInterfaceManager(  770): [PhoneIntfMgr] dialWithoutDelay() phoneType=5
D/PhoneNumberUtils(  770): mPreferredPhoneType= 5

B4X:
D/PhoneInterfaceManager(  770): [PhoneIntfMgr] phonetype=1 eccPhoneType=1
D/PhoneInterfaceManager(  770): [PhoneIntfMgr] dialWithoutDelay() phoneType=1
D/PhoneNumberUtils(  770): mPreferredPhoneType= 1
D/PhoneNumberUtils(  770): ECC List = 112,911
D/PhoneInterfaceManager(  770): [PhoneIntfMgr] emergencyNumber=false
D/PhoneUtils(  770): checkAndCopyPhoneProviderExtras: some or all extras are missing.
D/PhoneUtils(  770): without iscalllog
D/PhoneInterfaceManager(  770): [PhoneIntfMgr] OutgoingCallReceiver.onReceive()
D/ITelephonyImpl(  770): doReceive, getResultData, number = ×××
D/PhoneNumberUtils(  770): mPreferredPhoneType= 1
D/PhoneNumberUtils(  770): ECC List = 112,911
I/PhoneUtils(  770): [embedded]placeCall: 'tel:xxx-xxx-xxxx'...
D/CallManager(  770): dial-phone.getPhoneType: 1
D/CallManager(  770): dial-dial call.
D/GSM(0)  (  770): dialing w/ mmi 'GsmMmiCode {State=PENDING action=* sc=123 poundString=*123#}'...
 

Attachments

  • Screenshot_2014-07-06-13-46-10.png
    Screenshot_2014-07-06-13-46-10.png
    173.8 KB · Views: 246
Top