我建立小型短信应用程序,我有一个问题。股票短信应用程序,例如GO短信,我可以选择向多个人发送一条消息,之后两个应用程序都会在会话列表中显示该消息。
http://dl.dropbox.com/u/18780140/group_sms.jpeg
但我如何在自己的应用中检测到这一点? 我尝试使用:content:// mms-sms / conversations但它只显示一个带有一个地址的对话,并且没有任何特殊的符号外观: (我发送了“Hyg”消息给数字:1003和0001(屏幕截图上的消息不同于此))
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
还有内容://短信/对话不给我任何东西
D/ContactAIOApp( 387): thread_id 89
D/ContactAIOApp( 387): msg_count 2
D/ContactAIOApp( 387): snippet Test
当然,我可以“输入”每个对话,并检查每条消息,寻找不同的数字,但它会很慢
答案 0 :(得分:0)
不确定您是否仍在寻找答案,但这是您可以做到的。
如果您使用“content:// mms-sms / conversations?simple = true”Uri,则会有一个名为“recipient_ids”的列,其中包含组消息的ID数组。 从ID中,您可以找到收件人的地址。