我制作了一个小型短信应用,有一个问题。股票短信应用和例如GO SMS给了我一个选项,可以向多个人发送一条消息,之后两个应用程序都会在对话列表中显示这条消息。
当然,我可以“进入”每个对话并检查每条消息中的不同数字,但这样会非常缓慢。
http://dl.dropbox.com/u/18780140/group_sms.jpeg
但是我该如何在自己的应用程序中检测到这一点呢? 我尝试使用:content://mms-sms/conversations,但它只显示一个带有一个地址的对话,并没有任何特殊的标志,看起来像这样: (我向号码1003和0001发送了“Hyg”消息(不同于屏幕截图上的消息))
D/ConversationAdapter(13012): body Hyg
D/ConversationAdapter(13012): person null
D/ConversationAdapter(13012): sub null
D/ConversationAdapter(13012): subject null
D/ConversationAdapter(13012): retr_st null
D/ConversationAdapter(13012): type 5
D/ConversationAdapter(13012): date 1330538860294
D/ConversationAdapter(13012): ct_cls null
D/ConversationAdapter(13012): sub_cs null
D/ConversationAdapter(13012): _id 510
D/ConversationAdapter(13012): read 1
D/ConversationAdapter(13012): ct_l null
D/ConversationAdapter(13012): tr_id null
D/ConversationAdapter(13012): st null
D/ConversationAdapter(13012): msg_box null
D/ConversationAdapter(13012): thread_id 86
D/ConversationAdapter(13012): reply_path_present null
D/ConversationAdapter(13012): m_cls null
D/ConversationAdapter(13012): read_status null
D/ConversationAdapter(13012): ct_t null
D/ConversationAdapter(13012): status -1
D/ConversationAdapter(13012): retr_txt_cs null
D/ConversationAdapter(13012): d_rpt null
D/ConversationAdapter(13012): error_code 0
D/ConversationAdapter(13012): m_id null
D/ConversationAdapter(13012): m_type null
D/ConversationAdapter(13012): v null
D/ConversationAdapter(13012): exp null
D/ConversationAdapter(13012): pri null
D/ConversationAdapter(13012): service_center null
D/ConversationAdapter(13012): address 1003
D/ConversationAdapter(13012): rr null
D/ConversationAdapter(13012): rpt_a null
D/ConversationAdapter(13012): resp_txt null
D/ConversationAdapter(13012): locked 0
D/ConversationAdapter(13012): resp_st null
D/ConversationAdapter(13012): m_size null
另外,content://sms/conversations没有给我任何东西。
D/ContactAIOApp( 387): thread_id 89
D/ContactAIOApp( 387): msg_count 2
D/ContactAIOApp( 387): snippet Test
当然,我可以“进入”每个对话并检查每条消息中的不同数字,但这样会非常缓慢。