SmsManager on Dual Sim Phones

3

I've been researching the subject, but have not yet seen any definitive solution to the problem. Well, my application does send SMS from SmsManager however, it does not ask which chip to use when running in a Dual Sim application, simply because I have no idea how to do it.

As far as I know, the second parameter of smsManager.sendTextMessage which is currently declared as null is responsible for the Service Center (SMSC) that will be used for sending, which would result in sending the correct chip, in parts since the user can have a cell phone with two chips from the same operator, thus using the same SMSC for both chips.

I have checked the SmsManager documentation but there is not even any usage information on Dual Sim devices.

And here's my question: how to actually use SmsManager on Dual Sim devices correctly, always asking which chip to use, or setting it in advance?

    
asked by anonymous 14.06.2016 / 04:19

2 answers

0

Speak Italo,

I believe this is a function chosen directly on the user's device.

It is possible to define which SIM will be the standard of connections and sending of SMS, to revoke this permission, in the device itself one must do:

Configurações >> Wireless & Networks >> SIM Management >> Padrão 

Settings >> Messages >> e selecionar 'Perguntar sempre'.

With this every time you send an SMS through an APP, you will be asked which SIM should be used.

Via code can not disable the user's default choice.

Hugs.

    
14.06.2016 / 16:22
0

So far without any resolution to the problem, has anyone else gone through this? If you answer my own question to get more attention it is not correct, please let me know. I'm new here by SO

    
05.07.2016 / 18:27