Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Contact list filter

OP dsimoes12

9th April 2014, 12:46 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Mar 2014
Hello everyone,

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:
Code:
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:
Code:
select * from all_contacts where phone IN reply_array
Thanks
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes