title: AutoCompleteTextView not showing suggestion
body: <p>I am trying to create an application for android in which I want to keep <code>AutoCompleteTextView</code> to show suggestion to reduce the efforts of users. Currently I am testing with a small code I wrote but I am not getting suggestions. I am putting up the code, Please help me to find the error.</p>
  
  <pre><code>public class MainActivity extends Activity {
  
  private ArrayList&lt;Map&lt;String, String&gt;&gt; objects;
  private AutoCompleteTextView autotextView;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      autotextView = (AutoCompleteTextView) findViewById(R.id.autocompleteView);
  
      objects = new ArrayList&lt;Map&lt;String, String&gt;&gt;();
  
      Map&lt;String, String&gt; NamePhoneType = new HashMap&lt;String, String&gt;();
      NamePhoneType.put("Name", "John");
      NamePhoneType.put("Phone", "1234567890");
      objects.add(NamePhoneType);
      NamePhoneType.put("Name", "Steve");
      NamePhoneType.put("Phone", "4567890123");
      objects.add(NamePhoneType);
  
      ArrayAdapter&lt;Map&lt;String, String&gt;&gt; am = new ArrayAdapter&lt;Map&lt;String, String&gt;&gt;(
              this, R.layout.list_item, objects);
  
      autotextView.setAdapter(am);
  }
  }
  </code></pre>
  
  <p><strong>list_item.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical" &gt;
  
  &lt;TextView
      android:id="@+id/ccontName"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Name"
      android:textAppearance="?android:attr/textAppearanceLarge"
      android:textColor="#A5000000" /&gt;
  
  &lt;TextView
      android:id="@+id/ccontNo"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_below="@+id/ccontName"
      android:text="Phone"
      android:textAppearance="?android:attr/textAppearanceMedium"
      android:textColor="#A5000000" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>