0

This is working but sending sms from sim1 only, i want to send from sim2.

String num = number.getText().toString();
String uri = "geo:" + gps.getLatitude() + "," + gps.getLongitude();
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(num, null, uri, null, null);
Andrey Korneyev
  • 25,929
  • 15
  • 67
  • 67
AMIT
  • 380
  • 1
  • 4
  • 17

2 Answers2

0

It is not possible through android api, for details check the following answer https://stackoverflow.com/a/5255993/4349688

Community
  • 1
  • 1
Chandrakanth
  • 3,635
  • 2
  • 16
  • 30
-1

It seems to be possible!

Use this link to get slot ids: link 1

and use this link to send SMS by using a specific slot id: link 2

Community
  • 1
  • 1
abhi
  • 1,362
  • 18
  • 22