2012-07-01 24 views
0

我不能使用「content:// sms」? 適用於所有Android設備? 我正在使用「SmsManager」,但不會在手機盒輸出中添加短信。 我使用「content:// sms/outbox」來保存信息。 如何使用「SmsManager」? 謝謝。我不能使用「content:// sms」?

+0

你想發送短信嗎?將它添加到「content:// sms/outbox」? – PVS

回答

1

發送消息後,您必須將短信寫入cr。

ContentValues values = new ContentValues(); 
values.put("address", phone); 
values.put("body", message); 
getContentResolver().insert(Uri.parse("content://sms/sent"), values); 

這需要短信寫入權限,並且必須在短信發送後完成。

+0

我可以使用「content:// sms/sent」?適用於所有Android設備? –