2011-06-24 106 views

回答

2

是,發送短信只需意圖發送短信,如:

Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse(「phonenumber」)); 
intent.putExtra(「sms_body」, body); 
intent.putExtra(「compose_mode」, true); 
context.startActivity(intent); 

因此,對於這個代碼,你需要的Context對象。

+0

那麼這是否自動發送?多數民衆贊成我想要的...謝謝你的方式提供你的幫助。 – theITRanger22