Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

How to send a SMS using SMSmanager in Dual SIM mobile?

Am using SMS manager to send SMS.For single SIM its works perfectly to send the SMS.but in dual SIM the SMS will not send.Is it possible to send the SMS from dual SIM,if possible means how can i select the Which SIM to send SMS.Can any one know help me to solve this issue.

Single SIM working Code

SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(ph_number, null, body, null,null);

Answer*

Draft saved
Draft discarded

Required fields are marked with *

Cancel
14
  • 1
    Great but how can i get information about sim1 and sim2 ? I want to send text using specific operator only, lets say AT&T. do you have any idea how to find out information about each sim card? Commented Aug 18, 2015 at 11:24
  • 1
    Hi Alireza, see my updated answer. I included util I use for that purpose. Commented Aug 19, 2015 at 8:06
  • 1
    thank you very much i will definitely give it a try. Commented Aug 20, 2015 at 8:54
  • 1
    @e.hadid I have updated my answer .. see update 09.10.2016 Commented Oct 9, 2016 at 11:59
  • 2
    @maherAbuthraa. in android 6 marshmallow it gives me "NoSuchMethodException:sendText " . could you please help me what to do? Commented Oct 25, 2016 at 15:54

default