I have problems using CursorLoader. I need to retrieve phone and email adress for given name.
I implemented methods of LoaderManager.LoaderCallbacks<Cursor> interface. The problem is that I need to get contact_id from table contacts first, and then based on that contact_id I need to query RawContacts/Data table for email and phone.
I can't find example where you have more than one query in onCreateLoader(), usually you have return new CursorLoader(...). I have idea of using managedQuery(..) method to get id of contact and pass it to CursorLoader but I guess this isn't good idea. Any suggestion?