title: Fetching a Single Phone Number from a contact in Contacts Book which is having multiple numbers saved
body: <p>I need to ask a user for a contact number to make a call. On Button Click the User should be directly redirected to Contacts Book and the user can select a Phone Number. Following is the Source Code what I am using now.</p>
  
  <pre><code>Button buttonReadContact;
  TextView textPhone;
  final int RQS_PICKCONTACT = 1;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      buttonReadContact = (Button)findViewById(R.id.readcontact);
      textPhone = (TextView)findViewById(R.id.phone);
  
  
  
      buttonReadContact.setOnClickListener(new View.OnClickListener(){
  
          @Override
          public void onClick(View arg0) {
              //Start activity to get contact
              final Uri uriContact = ContactsContract.Contacts.CONTENT_URI;
              Intent intentPickContact = new Intent(Intent.ACTION_PICK, uriContact);
              startActivityForResult(intentPickContact, RQS_PICKCONTACT);
          }});
  
  }
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      // TODO Auto-generated method stub
      if(resultCode == RESULT_OK){
          if(requestCode == RQS_PICKCONTACT){
              Uri returnUri = data.getData();
              Cursor cursor = getContentResolver().query(returnUri, null, null, null, null);
  
              if(cursor.moveToNext()){
                  int columnIndex_ID = cursor.getColumnIndex(ContactsContract.Contacts._ID);
                  String contactID = cursor.getString(columnIndex_ID);
  
                  int columnIndex_HASPHONENUMBER = cursor.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER);
                  String stringHasPhoneNumber = cursor.getString(columnIndex_HASPHONENUMBER);
  
                  if(stringHasPhoneNumber.equalsIgnoreCase("1")){
                      Cursor cursorNum = getContentResolver().query(
                              ContactsContract.CommonDataKinds.Phone.CONTENT_URI,
                              null,
                              ContactsContract.CommonDataKinds.Phone.CONTACT_ID + "=" + contactID,
                              null,
                              null);
  
                      //Get the first phone number
                      if(cursorNum.moveToNext()){
                          int columnIndex_number = cursorNum.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER);
                          String stringNumber = cursorNum.getString(columnIndex_number);
                          textPhone.setText(stringNumber);
                      }
  
                  }else{
                      textPhone.setText("NO Phone Number");
                  }
  
  
              }else{
                  Toast.makeText(getApplicationContext(), "NO data!", Toast.LENGTH_LONG).show();
              }
          }
      }
  }
  </code></pre>
  
  <p>But now the issue is I can only select one number from a contact which is having multiple Phone Numbers saved.</p>
  
  <p>I need to do this as in Skype Application. When the User select a contact which is having multiple contacts, from the Contacts Book itself it should ask the User to choose the number. Please help me to do it.</p>