I want to start SMS App using Intent to specific phone number with specific message. If I close this window it will return response and returns user to app. But how to cancel and return resultCode
to my Activity on SMS Send?
I've tried that one parameter exit_on_sent
but it doesnt work.
private fun launchSmsIntent(phoneNum: String){
val sms = Intent(Intent.ACTION_SENDTO).apply {
data = Uri.parse("smsto:$phoneNum")
putExtra("sms_body", PAYMENT_MSG)
putExtra("exit_on_sent", true)
}
a.startActivityForResult(sms, MainActivity.REQUEST_SMS_APP)
}