querying contacts for non-empty email in android
<p>I am a total dumb guy when it comes to Android native programming.
What I am trying to achieve is, </p>

<p>I want all the contacts from the Android's native contactbook which have an email associated with them.</p>

<p>it should be something like,</p>

<pre><code>Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI, null, Email.DATA != blank , null, null);
</code></pre>

<p>I have tried a lot, but cannot find a solution.</p>
