简体   繁体   English

如何知道电话中的哪些联系人使用我们的应用程序

[英]How to know which contacts from phone use our app

I am working on a chat app with kotlin language and I am trying to load all the contacts which are presently on the users phone.我正在使用 kotlin 语言开发一个聊天应用程序,并且我正在尝试加载当前在用户手机上的所有联系人。

I am saving their phone numbers in my database but I also want the users to know that which contacts are using this app and which are not using.我将他们的电话号码保存在我的数据库中,但我也希望用户知道哪些联系人正在使用这个应用程序,哪些没有使用。

I have been watching tutorials to do this but am not able to find it.我一直在看教程来做到这一点,但我找不到它。 Please if anybody can help.请如果有人可以提供帮助。 It would be great.那会很好。

I don't think there is anyway apart from searching through your database.除了搜索您的数据库之外,我认为没有其他方法。 For contact in your users phone check if the number is in your database.对于您的用户电话中的联系人,请检查该号码是否在您的数据库中。 You could sort the numbers in your database so that you can use binary search and make it faster.您可以对数据库中的数字进行排序,以便您可以使用二进制搜索并使其更快。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我怎么知道我的android手机“通讯录APP”支持哪个版本的名片? - How do I know which version of vCard my android phone "Contacts APP" support? Android:如何知道哪些联系人已经安装了应用程序? - Android: How to know which contacts already have the app installed? 如何将联系人从电话簿导入我们的应用程序 - How to import contacts from phonebook to our application 如何从联系人到我的SMS应用程序获取电话号码 - How to get phone number from contacts to my SMS app 如何以编程方式将我们的应用程序联系人同步到android上的本机联系人 - How to sync our app contacts into native contact app on android programmatically 如何获取whats应用联系人的电话号码 - how to get whats app contacts' phone numbers 与应用程序同步电话联系人 - Sync Phone Contacts with App 如何使用Smack将我的联系人同步到Openfire? 或如何知道哪个联系人(从我的联系人列表中)在openfire上注册? - How to sync my contacts to Openfire using Smack? Or how to know which contact(from my contactlist) is registered on openfire? 如何从电话联系人中获取联系人列表 - How to get group of contacts list from Phone Contacts 如何知道用户是否真的将我们应用程序中的内容分享到其他应用程序? - How to know If user actually shared the content from our app to other app or not?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM