短信内容提供商和联系人之间的关系
我有一个大问题,我在短信内容提供商和联系人内容提供商之间可以得到的唯一关系是电话号码,但是短信内容提供商以与联系人内容提供商中存储号码的方式不同的格式存储号码。因此,我如何比较两个表之间的数字,因为我没有看到任何其他关系或绑定它们的列。在我的国家,电话号码格式是 +254728306203,这是短信提供商存储号码的方式,但联系人提供商将其存储为 072-830-6203 任何帮助将不胜感激
I have a big problem, the only relationship i can get between sms content provider and the contacts content provider is the phone numbers BUT the sms content provider stores numbers in a different format as compared to how the numbers are stored in the contacts content provider. hence how can I compare the numbers between the two tables since I dont see any other relationship or column that binds them. I my country the phone number format is +254728306203, this is how the sms provider store the number but the contacts provider stores it as 072-830-6203 Any help will be greatly appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个(适用于 SDK 2.0+)。让数字采用任何格式。只需将其作为字符串传递...
在清单中添加权限
android.permission.READ_CONTACTS
。Try this (For SDK 2.0+). Let the number be in any format.. just pass it as a string...
Add permission
android.permission.READ_CONTACTS
in manifest.