0
ContentResolver.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, new String[]{ContactsContract.CommonDataKinds.Phone.NUMBER,
ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME,
ContactsContract.CommonDataKinds.Phone.CONTACT_ID}, null, null, null)

This returns null on some phones with no exception. Why? If i do this in the mainThread to make it happen?

Cliff Ribaudo
  • 8,932
  • 2
  • 55
  • 78
王维华
  • 1
  • 1
  • May be this answer can help you: http://stackoverflow.com/a/16108435/3110234 – activesince93 Oct 23 '15 at 09:59
  • 2
    Possible duplicate of [What causes Android's ContentResolver.query() to return null?](http://stackoverflow.com/questions/13080540/what-causes-androids-contentresolver-query-to-return-null) – Lokesh Oct 23 '15 at 10:04
  • Made title grammatically correct and improved english in the rest of it. – Cliff Ribaudo Oct 25 '15 at 11:08

0 Answers0