SmsManager MySmsManager = SmsManager.getDefault();
String PhoneNumber = "123....67"; //fil with the receiver's phone number
String SMSText = "Hello Android";
MySmsManager.sendTextMessage(PhoneNumber, null, SMSText, null, null);
How to send SMS using android.telephony.SmsManager
android.telephony.SmsManager manages SMS operations such as sending data, text, and pdu SMS messages. Get this object by calling the static method SmsManager.getDefault(). It supports both GSM and CDMA; please don't mix up with deprecated android.telephony.gsm.SmsManager.
0 Response to "How to send SMS using android.telephony.SmsManager"
Posting Komentar