Back to project page AgileSmsGenerator.
The source code is released under:
GNU General Public License
If you think the Android project AgileSmsGenerator listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package edu.emd.agilesmsgenerator.core; /* w w w . j av a 2s. c o m*/ import android.telephony.SmsManager; public class SimpleSmsSender implements SmsSender { public SmsManager getSmsManager() { return SmsManager.getDefault(); } public boolean send(String phonenumber, String message){ if(phonenumber.matches("\\d{10}") && message.length() > 0) { getSmsManager().sendTextMessage(phonenumber, null, message, null, null); return true; } return false; } }