对于 Android,有没有办法确定已向联系人发送了多少条短信?
我正在从 ContractContacts 读取联系人数据,并且可以查找 TIMES_CONTACTED (这对我有用),但此字段仅适用于对该联系人的呼叫。我还对通过短信或电子邮件联系联系人的次数感兴趣。
有谁知道这个信息是否可用?我一直在寻找但没有发现任何东西。
I'm reading contact data from ContractContacts, and can lookup TIMES_CONTACTED (which is useful to me), but this field only applies to calls to that contact. I'm also interested in the number of times a contact has been contacted via SMS or email.
Does anyone know if this information is available? I've been searching but haven't come across anything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 SMS,您需要直接访问位于 content://sms/inbox 的收件箱,并执行数据库查询来计算与匹配联系人对应的行数。
像这样的东西:
For SMS, you'll want to access the inbox located at content://sms/inbox directly and perform a database query to count the number of rows corresponding to the matching contact.
Something like: