```
ContentResolver cr = getContentResolver();           
Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);
if (cur.getCount() > 0) {      
  while (cur.moveToNext()) {
    String id = cur.getString(cur.getColumnIndex(ContactsContract.Contacts._ID));
    String name = cur.getString(cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
          c_Name.add(name);
    }
 }
 name_Val = (String[]) c_Name.toArray(new String[c_Name.size()]);
 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,name_Val); 
 txtPhoneName.setAdapter(adapter); 

```

As I am debugging I follow the code till `txtPhoneName.setAdapter(adapter)` and the `ArrayAdapter adapter` is filled with the contacts starting `{null, "Name1", "Name2"...}`.

When it comes to `autocompletetextView` it doesn't show anything, if instead I use fixed `String [] d={"NAME1","Name2","name3"}` it binds them just fine.