Android has several inbuilt functionality’s like sending message, calling, music player and many more we can use these inbuilt functionality right from our app also without closing our app. i.e, using intents we can use these functionality and can send SMS from our app.

Tutorial on how to send text message will let you learn sending sms from scratch.

 

main.xml

Get mobile number and message to be sent from the user interface.

 

 

MainActivity

Initialize edittexts and button

 

 

then using sms manager we can send sms directly from our app

 

Creating a method for sending sms

 

 

 

Manifest

Add a permission for sending sms to your manifest file

For runtime permission tutorial visit :  Android run time permission tutorial

 

 

 

Output

 

 

Share and like this tutorial if you like it.

Show Buttons
Hide Buttons
Read previous post:
Android tutorial on Picasso library || Load image using Picasso

Close