Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Join Contact data with my table in Android

I have table with contacts identified by LOOKUP_KEY and I need JOIN it with system contact data to get real name and photo. Is possible do this? Or I must read contact data for every contact item CursorAdapter and get required information about contact?

This question is related to: https://stackoverflow.com/questions/7222297/custom-contacts-view-join-or-combine-contactscontract-with-sqlite-table. But it's without reply.

like image 586
ATom Avatar asked Aug 13 '26 21:08

ATom


2 Answers

Maybe a CursorJoiner would do the trick?

like image 193
bmaupin Avatar answered Aug 15 '26 11:08

bmaupin


The only way to do that is going to be to read the data through the Content Provider, and put it in your own database. Afterwards you can perform JOIN queries with the data.

like image 31
Jack Avatar answered Aug 15 '26 11:08

Jack