How to fetch email from contact list of Android phone?
<p>I am trying to fetch various email addresses from contact list of android mobile like work,home.....etc.
for that I am using the code as below but I found in result only zero every time
please help me.
Thanks</p>

<pre><code>Cursor email = cr.query(ContactsContract.CommonDataKinds.Email.CONTENT_URI, null,
                Data.CONTACT_ID + " =" + id, null, null);
        while (email.moveToNext()) {
            emailAdd = email.getString(ContactsContract.CommonDataKinds.Email.TYPE_WORK);
            //ContactsContract.CommonDataKinds.Email.TYPE_HOME)
        }
        Log.v("anim", " emailAdd:    " + emailAdd);
</code></pre>

<p>and further I need to fetch Organization,nick-name,website also.</p>
