SMS Intent - Android Studio - Kotlin
Open SMS Intent with Phone Number using Android Studio and Kotlin Learn how to create a simple SMS sending feature in Android using Android Studio with Kotlin. This tutorial shows how to build a clean UI with an input field for phone numbers and a button that opens the SMS app with the entered number. A step-by-step guide with Kotlin code for beginners and developers moving from XML layouts to Compose. >> Check For Java >> Check for Kotlin >> Check for Compose Code Snippet: val intent = Intent(Intent.ACTION_VIEW, Uri.parse( "sms:" + Uri.encode(phone))) startActivity(intent) Full Example: activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:app= "http://schemas.android.com/apk/res-auto" xmlns:tools= "http://schemas.android.com/tools" android:layout_width= "match_parent" android:layout...