You are on page 1of 3

MUHAMMAD AFIQ HAZIM BIN ABD AZIZ

13DDT21F1142

STEP BY STEP ON HOW TO MAKE SMS AND TELEPHONY

1. Change the xml code layout with LinearLayout and add EditText and set the hint as Phone Number
and the inputType as phone.

2. next add another EditText for the Type Message and set the input as textLongMessage, and also
create the button that will be set as send.
MUHAMMAD AFIQ HAZIM BIN ABD AZIZ
13DDT21F1142

3. Set the id for Both EditText and Button. The id for the phone EditText will be number and the
Type Message EditText will be message, while the button id will be set as send.

4. Add in manifest uses permission to send sms

5. Declare the EditText and Button in java file

6. Next declare in the onCreate for the findViewbyId for every variable declared.
MUHAMMAD AFIQ HAZIM BIN ABD AZIZ
13DDT21F1142

7. To function the button send

You might also like