Sunday, February 4, 2018

Sending SMS In Android

In Android, We can use SmsManager API  to send SMS's. In this tutorial, we shows you two basic examples to send SMS message.

SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage("phoneNo", null, "sms message", null, null);

Intent sendIntent = new Intent(Intent.ACTION_VIEW);
sendIntent.putExtra("sms_body", "default content"); 

No comments:

Post a Comment