I am using a FragmentActivity
to display information from my own ContentProvider
which is loaded with a CursorLoader
. That ContentProvider
delivers a phone number and I would like to have the name and image of that contact if available.
In the first approach I queried the ContactsContract
in the CursorAdapter
but that isn't the best solution as it makes the scrolling laggy even on fast devices.
I thought and searched about my problem and created 3 ways:
- A
left join
with twoContentProviders
but I found nothing about that. - Creating a custom Loader class like here.
- A service wich adds the information from
ContactsContract
to my ownContentProvider
so I only have to query one provider.
Let's discuss that. :D
Kind Regards,
k.j.