Autocompletetextview with custom adapter and filter
<p>I am trying to set a custom arrayadapter for my autocompletetextview like this </p>

<pre><code>public class AutoCompleteContactArrayAdapter extends
    ArrayAdapter&lt;Map&lt;String, String&gt;&gt; implements Filterable {
private Context mContext;
private List&lt;Map&lt;String, String&gt;&gt; mContactList;

public AutoCompleteContactArrayAdapter(Context context,
        List&lt;Map&lt;String, String&gt;&gt; objects) {
    super(context, R.layout.auto_contact_list, objects);
    mContext = context;
    mContactList = objects;
    // TODO Auto-generated constructor stub
}

@Override
public View getView(int position, View convertView, ViewGroup parent) {
    LayoutInflater inflater = (LayoutInflater) mContext
            .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    View rowView = inflater.inflate(R.layout.auto_contact_list, parent,
            false);
    TextView nameView = (TextView) rowView.findViewById(R.id.ccontName);
    TextView phoneView = (TextView) rowView.findViewById(R.id.ccontNo);
    TextView typeView = (TextView) rowView.findViewById(R.id.ccontType);
    Map&lt;String, String&gt; contactMap = mContactList.get(position);

    nameView.setText(contactMap.get("name"));
    phoneView.setText(contactMap.get("phone"));
    typeView.setText(contactMap.get("type"));

    return rowView;
}
@Override
public Filter getFilter() {
    return new Filter() {
        @Override
        protected void publishResults(CharSequence constraint,
                FilterResults results) {

            if (results.count &gt; 0) {
                notifyDataSetChanged();
            } else {
                notifyDataSetInvalidated();
            }
        }

        @Override
        protected FilterResults performFiltering(CharSequence constraint) {
            ArrayList&lt;String&gt; result = new ArrayList&lt;String&gt;();
            result.add("test");
            result.add("another");
            result.add("last");
            FilterResults r = new FilterResults();
            r.values = result;
            r.count = result.size();
            return r;
        }
    };
}
}
</code></pre>

<p>In debug the application is entering the filter methods both publishResults and performFiltering but the result set that is being displayed is not my test array [test,another,last] instead it just shows all the results ignoring my filter</p>
