Answers for "how to send sms in kotlin app"

0

how to send sms in kotlin app

private fun sendSMS(phoneNumber: String, message: String) {
        val sentPI: PendingIntent = PendingIntent.getBroadcast(this, 0, Intent("SMS_SENT"), 0)
        SmsManager.getDefault().sendTextMessage(phoneNumber, null, message, sentPI, null)
    }
Posted by: Guest on April-28-2022

Browse Popular Code Answers by Language