remark: change "xxxxxxxx" to the number of the phone to receive SMS.
Uri uri = Uri.parse("smsto:xxxxxxxx");
Intent intent = new Intent(Intent.ACTION_SENDTO, uri);
intent.putExtra("sms_body", "SMS text");
startActivity(intent);
No comments:
Post a Comment