I\'m novice at android.
My custom Adapter cause exception when filtering.
here is my code. private class DeptAdapter extends ArrayAdapter implements Filter
You need to add this methods for better performance:
@Override public int getCount() { return items.size(); } @Override public Object getItem(int position) { return this.items.get(position); } @Override public long getItemId(int position) { return position; }