Possible bug with Samsung roms?
<p>I'm currently working in an app that shows a contact list to the user.</p>

<p>In that list, the name, the contact picture and the email of the contact must be shown, so I get the list like this:</p>

<pre><code>final Cursor c = managedQuery(ContactsContract.CommonDataKinds.Email.CONTENT_URI, null,ContactsContract.CommonDataKinds.Email.TYPE + "="+ContactsContract.CommonDataKinds.Email.TYPE_HOME , null,ContactsContract.Contacts.DISPLAY_NAME);

int tamano= c.getCount();      

Log.e("USER", "The size of the contact list is : " + tamano);
</code></pre>

<p>And here's the thing...</p>

<p>I've tried it in 3 samsung mobiles (2 Galaxy SII and 1 Galaxy ACE), and 2 HTC (1 HTC Desire S and 1 HTC Wildfire).</p>

<p>The results are, at least, funny:</p>

<p>With all the galaxies: </p>

<p>The size of the contact list is : 9</p>

<p>With the HTC:</p>

<p>The size of the contact list is 482</p>

<p>All the phones are sync with the same gmail account, so have the same number of contacts...</p>

<p>How is this possible? Is there a bug or something in the Samsung roms?</p>

<p>Greetings!</p>

<p><em><strong></em>**</strong>*EDIT WITH SOLUTION:</p>

<p>IT WORKS! And now I know what the problem is:   </p>

<pre><code>ContactsContract.CommonDataKinds.Email.TYPE_HOME
</code></pre>

<p>The thing is that samsung doesn't organize the contacts the same way HTC does, and now it's fixed with this small change: </p>

<pre><code>ContactsContract.CommonDataKinds.Email.TYPE_OTHER
</code></pre>

<p>Now all the contacts appear in all the phones (except in Galaxy Ace, but might be because of the strange rom it has...) THANKS! </p>
