title: How to show the two different data in autocomplete textView data
body: <pre><code>Cursor cur = db.rawQuery("SELECT "+dbh.AM_Name+" FROM "+dbh.TABLE_ACCMST, null);
          ArrayList&lt;String&gt; names = new ArrayList&lt;String&gt;();
          for(cur.moveToFirst(); !cur.isAfterLast(); cur.moveToNext()){
              names.add(cur.getString(0));
          }
          ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter(getApplicationContext(), R.layout.dropdownlist, R.id.checkedTextView1, names);
          etsebuyname.setAdapter(adapter);
  </code></pre>
  
  <p>In the above code I am populating the autocomlete TextView with the names present in my database. I want to display respective city from the database along with the name in the dropdown help. But after slection only name should be filled in the AutoCompletetextview. Please help.</p>