上代碼吧:
public void sendMessage(String phone ,String body){
//Uri的第一個參數是固定的"smsto:"
Uri uri=Uri.parse("smsto:"+phone);
Intent i=new Intent(Intent.ACTION_SENDTO, uri);
//intent的第一個參數也是固定的"sms_body"
i.putExtra("sms_body", body);
startActivity(i);
}