Read contacts all contacts (also imported from facebook, etc)
<p>According to this sample: <a href="http://developer.android.com/resources/samples/ContactManager/index.html" rel="nofollow">http://developer.android.com/resources/samples/ContactManager/index.html</a> 
I wrote a simple function for getting all contacts:</p>

<pre><code> Uri uri = ContactsContract.Contacts.CONTENT_URI;
    String[] projection = new String[] {
            ContactsContract.Contacts._ID,
            ContactsContract.Contacts.DISPLAY_NAME
    };
    String selection = ContactsContract.Contacts.IN_VISIBLE_GROUP + " = '" +
            (mShowInvisible ? "0" : "1") + "'";
    String[] selectionArgs = null;
    String sortOrder = ContactsContract.Contacts.DISPLAY_NAME + " COLLATE LOCALIZED ASC";
</code></pre>

<p>It works well but it dosn't return contacts imported with Facebook application (but they are visible in the Contacts application). Any idea on how to read all the contacts like in the Contacts application?</p>

<p>Thanks</p>
