title: onItemClick setting text to the AutoCompleteTextView
body: <p>I have added a onTextChangedListener to my autocomplete textview and populate it using an async task</p>
  
  <pre><code>mAutoComplete.addTextChangedListener(new TextWatcher() {
      public void beforeTextChanged(CharSequence s, int start, int count,
              int after) {
      }
      public void onTextChanged(CharSequence s, int start, int before,
              int count) {
          //run an async tast to get autocompletes
      }
      @Override
      public void afterTextChanged(Editable s) {
      }
  });
  
  private class getAutoCompletes extends AsyncTask&lt;String, Void, String&gt; {
      @Override
      protected String doInBackground(String... params) {
          //get autocompletes
      }
      @Override
      protected void onPostExecute(String result) {
          //create an adapter
          mAdapter AutoCompleteAdapter = new mAdapter(
                  mActivity.this,
                  R.layout.m_layout,
                  R.id.m_id, autocompletesList);
          //set it to the autocomplete textview
          mAutoComplete.setAdapter(AutoCompleteAdapter);
          //show the dropdown
          mAutoComplete.showDropDown();
      }
  }
  </code></pre>
  
  <p>Then I have <code>setOnItemClickListener(new AdapterView.OnItemClickListener() {}</code> on the mAutoComplete. But doing nothing in it.</p>
  
  <p><strong>Still I get the String representation of the adapter as text in the mAutoComplete, when I click on any item in the dropdown</strong></p>
  
  <pre><code>com.xxxx.app.mAdapter@4342ca0
  </code></pre>
  
  <p>No where I am setting the text for the mAutoComplete.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p><strong>Adapter Class:</strong></p>
  
  <pre><code>public class mAdapter extends ArrayAdapter&lt;customDS&gt; {
  
      private LayoutInflater mInflater = null;
      private Context ctx;
      public ArrayList&lt;customDS&gt; values = new ArrayList&lt;customDS&gt;();
  
      public mAdapter(Context context, int resource,
              int textViewResourceId, ArrayList&lt;customDS&gt; objects) {
          super(context, resource, textViewResourceId, objects);
          values = objects;
          ctx = context;
          mInflater = (LayoutInflater) ctx
                  .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      }
  
      public int getCount() {
          return values.size();
      }
  
      public customDS getItem(int position) {
          return values.get(position);
      }
  
      public long getItemId(int position) {
          return position;
      }
  
      public static class ViewHolder {
          public TextView title;
          public TextView description;
      }
  
      public View getView(final int position, View convertView, ViewGroup parent) {
  
          ViewHolder holder;
          if (convertView == null) {
              holder = new ViewHolder();
              convertView = mInflater.inflate(R.layout.m_layout,
                      parent, false);
              holder.title = (TextView) convertView
                      .findViewById(R.id.m_id);
              holder.description = (TextView) convertView
                      .findViewById(R.id.m_id2);
  
              convertView.setTag(holder);
          } else {
              holder = (ViewHolder) convertView.getTag();
          }
          holder.title.setText(values.get(position).title);
          holder.description.setText(values.get(position).description);
  
          return convertView;
      }
  }
  </code></pre>