How To Send SMS Message In Android ?
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage("phoneNo", null, "sms message", null, null);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.putExtra("sms_body", "Hii..... i m Naveen Tamrakar an Android Developer from
Indore");
intent.setType("vnd.android-dir/mms-sms");
startActivity(intent);
<uses-permission android:name="android.permission.SEND_SMS" />
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage("phoneNo", null, "sms message", null, null);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.putExtra("sms_body", "Hii..... i m Naveen Tamrakar an Android Developer from
Indore");
intent.setType("vnd.android-dir/mms-sms");
startActivity(intent);
<uses-permission android:name="android.permission.SEND_SMS" />
No comments:
Post a Comment