Contact list filter
I'm developing an app that requires the user to be registered in a server. Right now I want to show the user which of its contacts are using the app (registered in the server).
All the request/reply part is implemented. What I can't do is to show a contact list with only the contacts that the app receives as reply from server.
Note that I don't want to make the list myself but rather use something like this:
Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.CommonDataKinds.Phone.CONTENT_URI);
which shows the contact list for the user to pick one.
Just to be absolutely clear, I'm talking about filtering the contacts the following way:
select * from all_contacts where phone IN reply_array