2
A
回答
1
它可以通過幾種不同的方式完成。這裏有一個:
Intent sendIntent = new Intent(Intent.ACTION_VIEW);
sendIntent.putExtra("sms_body", "Content of the SMS goes here...");
sendIntent.setType("vnd.android-dir/mms-sms");
startActivity(sendIntent);
0
Here "number" is an array of strings with the numbers of contacts to whom you want to send sms to and "älldetails" is teh string you want to send.
String n = "";
for(int i = 0; i<sizesf ;i++)
{
if(i == (sizesf-1))
{
n = n + number[i];
}
else
n = n + number[i] + ";";
}
Log.d("numbers in intent", n);
Intent smsIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("smsto:"+ n));
smsIntent.setType("vnd.android-dir/mms-sms");
smsIntent.putExtra("address", n);
smsIntent.putExtra("sms_body",alldetails);
startActivity(smsIntent);
}
相關問題
- 1. 如何去執行短信/短信/彩信到C#應用程序
- 2. 執行默認信號處理程序
- 3. 無法刪除短信編程(默認短信應用集)
- 4. 自動恢復到以前的默認短信應用程序
- 5. 從默認短信應用程序獲取短信活動結果
- 6. Android的寫入默認短信應用
- 7. 如何使用Intent將鏈接發送到默認的短信應用程序?
- 8. Android默認短信應用程序權限套件
- 9. 如何更改Android中的默認短信應用程序背景
- 10. 如何去默認短信界面/通訊錄從我們的應用程序
- 11. Android 4.4設置默認的短信應用程序,無需用戶確認
- 12. 我怎麼能得到默認的短信應用程序的包名?
- 13. iphone短信應用程序
- 14. 短信發件人的名稱顯示爲默認的短信應用
- 15. 防止「ACTION_CHANGE_DEFAULT」自動提示以更改默認的短信應用程序
- 16. 短信發送/發送狀態從默認消息應用程序 - Android
- 17. 如何在Android的默認短信表中保存短信的發送狀態
- 18. 默認應用程序,如Windows的wget
- 19. 默認應用程序
- 20. Web2py默認應用程序
- 21. java執行程序的默認執行策略
- 22. 如何在不打開短信應用程序的情況下發送短信
- 23. 設置默認的短信應用在Android中沒有startActivity
- 24. 默認短信應用無法在奇巧的Nexus開5
- 25. 如何設置默認的應用程序安裝程序?
- 26. 自讀短信的Web應用程序
- 27. gmail從我的應用程序短信
- 28. PHP中的短信應用程序
- 29. 更改我的應用程序的默認文化信息
- 30. 應用程序發送多個短信接收電話/短信
謝謝!對此,我真的非常感激!! – dksxogudsla 2011-03-30 04:04:33