title: android Get email suggestions in auto complete textview
body: <p>i want to get email in my contacts as suggestions using auto complete textview. 
  i am currently getting contact's name , contact's id and number like        </p>
  
  <pre><code>@SuppressWarnings("deprecation")
      public void PopulatePeopleList() {
  
          mPeopleList.clear();
  
          try {
  
              Cursor phones = getContentResolver().query(
                      ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,
                      null, null, null);
  
              while (phones.moveToNext()) {
  
                  String num = phones
                          .getString(phones
                                  .getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));
                  num = num.replaceAll(" ", "");
                  String name = phones
                          .getString(phones
                                  .getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME));
                  String id = phones
                          .getString(phones
                                  .getColumnIndex(ContactsContract.CommonDataKinds.Phone.CONTACT_ID));
  
                  Map&lt;String, String&gt; NamePhoneType = new HashMap&lt;String, String&gt;();
  
                  NamePhoneType.put("Name", name);
                  NamePhoneType.put("Phone", num);
                  NamePhoneType.put("Type", id);
                  mPeopleList.add(NamePhoneType);
  
                  // Add ArrayList names to adapter
  
              }
  
          } catch (Exception e) {
              Log.i("AutocompleteContacts", "Exception : " + e);
          }
  
          // startManagingCursor(people);
      }
  </code></pre>