How to get only Contacts with a StructuredAddress attached in Android?
<p>By executing the following code i can parse all Android contact book items and attached postal address:</p>

<pre><code>   Cursor cursor = mContext.getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);
   while (cursor.moveToNext()) { 
         String contactId = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID)); 
         Cursor addresses = mContext.getContentResolver().query( ContactsContract.CommonDataKinds.StructuredPostal.CONTENT_URI, null, ContactsContract.CommonDataKinds.StructuredPostal.CONTACT_ID +" = "+ contactId, null, null); 
         while (addresses.moveToNext()) {
            String city = addresses.getString(addresses.getColumnIndex( ContactsContract.CommonDataKinds.StructuredPostal.CITY));    
            // other structured address fields.
         }
    }
</code></pre>

<p>I am not interested in address-less entries, does anybody knows if i can select only address book items that have a a structured address in the first query, so that i don't have to waste time parsing all of them ?</p>
