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
  • 26,353
  • 15
  • 70
  • 71
AMIT
  • 390
  • 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,711
  • 2
  • 18
  • 31
-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,412
  • 19
  • 25