[英]Android How to know which Contacts have my application installed?
I'm creating an application where I need to know who in my Contacts HAS my application installed on their phone. 我正在创建一个应用程序,我需要知道联系人中的谁将我的应用程序安装在他们的手机上。 I already have a contact list in a ListView displayed in my application, but those contacts shown need to be restricted to those who have my application installed.
我的应用程序中已经显示了ListView中的联系人列表,但是所显示的那些联系人必须限于安装了我的应用程序的联系人。 Is there any way to tell?
有什么办法说吗? Thanks!
谢谢!
You're gonna have to store that information somewhere in the cloud. 您将不得不将该信息存储在云中的某个地方。
You need an activity or service that will store the user information somewhere (eg a dababase) and you'll have to get the info for all your users from there in order to filter your list view's adapter. 您需要一项将用户信息存储在某个地方(例如dababase)的活动或服务,并且您必须从那里获取所有用户的信息,以便过滤列表视图的适配器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.