-1

I am trying to send an sms using intent i am able to send the phone number and the text to send but after running the line startActivity(smsIntent); the problem is the user have to press the "send" button.

adi181188
  • 23
  • 5

1 Answers1

3

Send it directly using SmsManager. This will require the SEND_SMS permission.

If you delegate the work to a third-party app (e.g., via ACTION_SEND or ACTION_SENDTO), then the user and the other app decide if and when to send the SMS, not you. You are merely suggesting an SMS to send.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491