- Education and Science
How to make an Android application that sends a text message
Here I will show you how to make an Android application that send a message to a text number when you press a button.
To develop this simple application I will use Android Studio as IDE.
1. Create a project
First you have to create an Android Studio project with a Blank Activity
2. Make a graphic interface
In activity_main.xml go and add two Edit Text and one Button ass fallows :
Now it should look like this:
3. Write Java code
Go to your MainActivity.java and make modification as fallow :
4. Add permissions request to AndroidManifest.xml
Add this line of code in AndroidManifest.xml