title: Get Contact by Phone number on Android
body: <p>I know how I can get all contacts in Android , and how to get their phone number.</p>
  
  <p>What I cant seem to figure out is how to get a contact by phone number...</p>
  
  <p>This is my current piece of code I wrote to test which phone numbers are available:</p>
  
  <pre><code>// Create a cursor
      Cursor cursor = Base.contentResover().query(Phone.CONTENT_URI, null, null,
              null, null);
  
      if (cursor.moveToNext()) {
          Log.d("CALLOG", cursor.getString(cursor.getColumnIndexOrThrow(Phone.NUMBER)));
      }
  </code></pre>
  
  <p>The problem is that i only get a few phone numbers returned, while i expect to get all... What am I doing wrong?</p>