Getting a list of all phone contacts?
<p><strong>NOTE: Must work on Android 1.5 - ContactsContract does not</strong></p>

<p>Simple enough question.  I need to know the best way to get the same list of contacts that show up when a user presses the Contacts button.</p>

<p>You would think something like this would work:</p>

<pre><code>//For Contacts
Intent pickIntent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI);
this.startActivityForResult(pickIntent, RESULT);

//For Phones
Intent pickIntent = new Intent(Intent.ACTION_PICK, Phones.CONTENT_URI);
this.startActivityForResult(pickIntent, RESULT);
</code></pre>

<p>The problem is that does not include secondary google accounts or Exchange contacts.  By secondary accounts, in Android you can add additional gmail accounts to have the mail/contacts synced.  The above intent will not list those additional contacts.</p>

<p>I am also told that on the HTC Desire you can add contacts to the phone that do not get synced up to Google.  These contacts also do not show up.</p>

<p>So how do I get a real list of contacts so I can create my own list activity that works properly where the Google intent does not.</p>

<p><strong>NOTE: Must work on Android 1.5 - ContactsContract does not</strong></p>
