No prompt to select SIM card in dual SIM phones when sending Text Messages (SMS)

671 views
Skip to first unread message

Dominic Obar

unread,
Apr 11, 2015, 6:44:29 PM4/11/15
to mitappinv...@googlegroups.com
Dear fellow users,

i am developing an application that broadcasts information through text messaging (SMS). calling the "TextMessaging.SendMessage" sends the message right away without asking which SIM card (network service provider) to use. this is not a problem in smart phones using a single SIM, but dual SIM phone users it is important to have the opportunity to choose between two SIM's.

cellular network service providers in our country offer unlimited free text messaging between their subscribers. so sending bulk quantities of text messages to recipients using the same network provider will not be charged anything.

if i could at least open the message first in phones default messaging app before sending then this will solve the problem.

any help will be highly appreciated.

SteveJG

unread,
Apr 11, 2015, 7:34:42 PM4/11/15
to mitappinv...@googlegroups.com
AI2 does not have the capability to select which SIM card to use.  Which card to use might have to be changed using the device's Android Settings manually.   I do not know, but expect that an AI2 app will automatically use the default SIM.    Is that how AI2 works?   Have you tested sms in your two SIM card phone and does it use whatever SIM is set to default?  

It might be possible to switch SIM card use with the ActivityStarter while in the AI2 app. I do not know if that is possible.  I do not have a dual SIM device.

Regards,
Steve


Dominic Obar

unread,
Apr 12, 2015, 9:15:18 PM4/12/15
to mitappinv...@googlegroups.com
thank you Steve!

i have set my device to "always ask" the SIM to use when sending a message, but my AI2 app always sends the message using SIM 1. i came up with a workaround though, instead of using TextMessaging.SendMessage, i use the Sharing.SendMessage. with this, the AI2 app shows the sharing options allowing the user to choose the default Android messaging app.
Reply all
Reply to author
Forward
0 new messages