SMS消息传递

public void onClick(View view){
    sendSMS("5556","Hello...");
    Toast.makeText(this,"hello",Toast.LENGTH_SHORT).show();
}

private void sendSMS(String s, String s1) {
    SmsManager smsManager = SmsManager.getDefault();
    smsManager.sendTextMessage(s,null,s1,null,null);

}

新闻名称:SMS消息传递
地址分享:http://ybzwz.com/article/jcpgig.html