How to send SMS to user entered phone number KOTLIN

HI! There is a problem, I can’t figure it out. In the first Activity, the user must enter a number. In the second Activity, he enters the address, and in the third Activity, when the button is pressed, the address from the second Activity should be sent by SMS to the number specified by the user from the first Activity.
I can’t figure out how to implement this. Thank!

This not Kotlin related, but if I recall correctly it is locked to the main SMS app for preventing SMS messages being sent to premium numbers belonging to the programmers. You can use an intent to create a message for the user to send. Otherwise use an SMS provider service on the Internet

1 Like