这是“线程”表实例
_id| recipient_ids| snippet
1 | 1 |Hi this is hello world
2 | 2 |Multiple send
3 | 1 3 4 |Send
recepient_ids对应的值放在'canonical_addresses'表中
_id| address
1 |9879565655
2 |1111111111
3 |5465321348
4 |8965321354
现在我必须为线程表中存在的每个“threads.recipient_ids”获取“canonical_addresses.address”(有时 recipient_ids 可以超过一个)?
注意:
我正在使用 content://mms-sms/conversation
从线程表中获取详细信息。
最佳答案
您需要按照以下方式制定查询:
String [] colAddress={"DISTINCT address"};
Cursor cur = getContentResolver().query(uriSMSURI, colAddress, null, null,null);
关于android - 如何从线程表中的 recepient_ids 中获取联系方式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7864534/