Need help on sending SMS from Android device – Education Career Blog

Friend’s
anybody provide some sample code to send SMS from android device.

Thanks in advance.

,

public void sendAText(String phonenumber){
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.putExtra("address", phonenumber);
    intent.setType("vnd.android-dir/mms-sms");
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    context.startActivity(intent);
}

Leave a Comment