SMS Sending App
SMS Sending App
Operating System
ANDROID
In this tutorial we will try to create a Simple Sending SMS using Android. This tutorial
is only an example for sending an SMS, it does not contain the receiving message
yet. Android is a mobile operating system developed by Google. It used in several
gadget like smartphone, tablet, and even television. Android is open source to
developers who has an interest in developing mobile apps. It also provide an
adaptive framework that allow the developer to develop an apps in a simpler way. So
let's now do the coding...
Getting Started:
First you will have to download & install the Android Development IDE (Android
Studio or Eclipse). Android Studio is an open source development feel free to
develop your things. Here's the link for the Android
Studio https://developer.android.com/studio/index.html.
Layout Design
We will now create the design for the application, first locate the layout file
called activity_main.xml, this is the default name when create a new activity. Then
write these codes inside your layout file.
1. <?xml version="1.0" encoding="utf-8"?>
2. <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
3. xmlns:app="http://schemas.android.com/apk/res-auto"
4. xmlns:tools="http://schemas.android.com/tools"
5. android:layout_width="match_parent"
6. android:layout_height="match_parent"
7. tools:context="com.razormist.sendsmsapp.MainActivity">
8.
9. <EditText
10. android:id="@+id/et_contact"
11. android:layout_height="wrap_content"
12. android:layout_width="match_parent"
13. android:inputType="number"
14. android:hint="Contact Number"/>
15.
16. <EditText
17. android:id="@+id/et_message"
18. android:layout_height="250dp"
19. android:layout_width="match_parent"
20. android:hint="Message"
21. android:inputType="textMultiLine"
22. android:gravity="left"
23. android:layout_below="@+id/et_contact"/>
24.
25. <Button
26. android:id="@+id/btn_send"
27. android:layout_height="wrap_content"
28. android:layout_width="wrap_content"
29. android:layout_below="@+id/et_message"
30. android:layout_centerHorizontal="true"
31. android:text="send"/>
32.
33. </RelativeLayout>
Try to run the app and see if it worked. There you have it we have created a Simple
Sending SMS using Android. I hope that this tutorial help you to what you are looking
for. For more updates and tutorials just kindly visit this site. Enjoy Coding!!!
Ad
1/2
59:58
Ngỡ Ngàng Trước Khung Cảnh Của Bình Liêu Quảng Ninh - Thiên Đường Vùng Biên
Giới Việt Trung
Download Code
Note: Due to the size or complexity of this submission, the author has submitted it as
a .zip file to shorten your download time. After downloading it, you will need a
program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but
new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.