title: How to set a contact's number in an auto complete textview in android?
body: <p>I have a code from where I can get the contacts name in a auto complete text view, here is my code</p>
  
  <pre><code>autoContacts=(AutoCompleteTextView)findViewById(R.id.actvContacts);
            Cursor emailCursor = getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, null, null, null);
              startManagingCursor(emailCursor);
              autoContacts.setAdapter(new SimpleCursorAdapter(this, android.R.layout.simple_dropdown_item_1line, emailCursor, new String[] {Email.DATA1}, new int[] {android.R.id.text1}));
              autoContacts.setThreshold(0);
  </code></pre>
  
  <p>but when I click in one of the name then it sets a text in that Autocomplete textview like this:</p>
  
  <pre><code>android.content.ContentResolver$CursorWrapperInner@44efc9c8
  </code></pre>
  
  <p>but here I want to set the specific phone number on that, how to fix this issue?</p>