Send SMS using Intent in Android via code
by Sasikumar[ Edit ] 2013-10-19 18:58:06
To Send SMS using Intent in Android use the following code:
Uri smsUri = Uri.parse("tel:100861");
Intent intent = new Intent(Intent.ACTION_VIEW, smsUri);
intent.putExtra("sms_body", "Type your message_text here");
intent.setType("vnd.android-dir/mms-sms");
startActivity(intent);
Change "100861" with the required telephone number.