How to read android sim contacts and phone contacts separately
<p>I want to read all sim contacts and phone contacts separately in Android. I searched for this and found lots of people having problem with this and I couldn't find any solution yet. I fond some answer <a href="http://stackoverflow.com/a/4409453/559185">here</a>, but it doesn't work for me.
When I test this it give me google contacts: </p>

<pre><code>RawContacts.ACCOUNT_TYPE + " = 'com.google' "
</code></pre>

<p>But when I test this it does not give me sim contacts: </p>

<pre><code>RawContacts.ACCOUNT_TYPE + " = 'com.android.contacts.sim' "
</code></pre>

<p>Then I found RawContacts are contacts that created by sync adapter in <a href="https://groups.google.com/group/android-developers/browse_thread/thread/133816827efc8eb9/8671f76b4111f215?pli=1" rel="nofollow">here</a>. That may be the problem. So can anyone tell me the way of getting </p>

<ul>
<li>All simcontacts</li>
<li>All phone contacts</li>
</ul>

<p>Thanks.</p>
