How to send sms in android
We can send sms in android via intent. You need to write only 4 lines of code the send sms in android.
Example of sending sms in android
Drag the 2 edittexts, 2 textviews and 1 button from the pallete, now the activity_main.xml file will like this:
Write the permission code in Android-Manifest.xml file
You need to write SEND_SMS permission as given below:
Let's write the code to make the phone call via intent.
Install and Run the apk file on the Real Device (e.g. Mobile) to send the sms.
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week