send SMS with SmsManager - Android Phone

Android examples for Phone:SMS

Description

send SMS with SmsManager

Demo Code


//package com.java2s;

import android.telephony.SmsManager;

public class Main {

    public static void sendSMS(String phone, String text) {
        SmsManager smsManager = SmsManager.getDefault();
        smsManager.sendTextMessage(phone, null, text, null, null);
    }// www. ja  va2 s .  c  o  m
}

Related Tutorials