1
我试图让短信会话和所有的短信列表像这样的结构:(这是一个会话结构)。获取干净的短信会话列表和短信
[
"names":[
"Antoine Duval",
"Mike Tyson",
"Marge Simpson"
],
"numbers":[
"+33 7 00 00 00 00",
"+33 7 11 11 11 11",
"+33 7 22 22 22 22"
]
"last_date":"a date",
"last-message":"a message",
"sms"[
[
"text":"a message",
"date":"a date",
"number":"+33 7 00 00 00 00"
],
[
"text":"a message",
"date":"a date",
"number":"+33 7 00 00 00 00"
],
[
"text":"a message",
"date":"a date",
"number":"+33 7 00 00 00 00"
],
(other messages in this conversation)...
]
(other conversations)...
]
我再也没有它,所以我看着this链接。
我不给我收到的消息,而不是我发的消息:'(它只是给我一个消息列表,它不是我的简洁结构:P
最后的问题是使用“startManagingCursor”,它已被弃用,我没有找到如何取代它:)
也许我会先列出所有的谈话,但我没有找到如何获得会话列表:/
将''content:// sms/inbox“'改为'”content:// sms“'获取所有消息,如果这就是你想要的。只需放下'startManagingCursor()'调用即可。 –