Added dataStores for contact, phone and photo

Please add a comment here on why we need to do this. I assume you are doing this because the column itself is not available in Android 2.3.

The cleaner solution would have been to not used the column and instead defined the cursor differently.
Cursor c = resolver.query(
        Data.CONTENT_URI, 
        null, 
        Data.HAS_PHONE_NUMBER + " !=0 AND (" + Data.MIMETYPE + "=? OR " + Data.MIMETYPE + "=?)", 
        new String[]{Email.CONTENT_ITEM_TYPE, Phone.CONTENT_ITEM_TYPE}, null);

I got this from http://stackoverflow.com/questions/11860475/how-to-get-contact-id-email-phone-number-in-one-sqlite-query-contacts-androi   so will still need to try it out and see how it works