[英]Need help on sending SMS from Android device
朋友的任何人都提供一些示例代码以从android设备发送短信。
提前致谢。
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);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.