设置Intent:
参考的代码如下,用来发送消息:
Uri uri = Uri.parse("smsto:18707192345");//电话号码
Intent intent = new Intent(Intent.ACTION_SENDTO,uri);//绑定uri
intent.putExtra("sms_body","Yelbosh I love you!");//短信的内容
t……
[/Quote]这个是发短信代码
设置Intent:
参考的代码如下,用来发送消息:
Uri uri = Uri.parse("smsto:18707192345");//电话号码
Intent intent = new Intent(Intent.ACTION_SENDTO,uri);//绑定uri
intent.putExtra("sms_body","Yelbosh I love you!");//短信的内容
this.startActivity(intent);