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);
}
精彩评论