get or set selected default sim card if the user has a dual sim

1k Views Asked by At

I have seen this post from 2012 and it has outdated answers. Until around 2015 Android natively supported multiple sim cards in API 22.

enter image description here

I heard about SubscriptionManager but I am not quite familiar with it, how can I get and dynamically set the currently selected Sim for SMS messages?

1

There are 1 best solutions below

1
On

If you want to select sim for sending sms only, you can try this post How to send a SMS using SMSmanager in Dual SIM mobile? where you need not interact with android settings but can send sms directly with java code.