error : The method getFilter() is undefined for the type FriendsActivity.ListAdapter

view full story

http://stackoverflow.com – Trying to implement search functionality in list view having problem in search,here i am placing code where i am getting error friendsearch.addTextChangedListener(new TextWatcher() { public void onTextChanged(CharSequence cs, int arg1, int arg2, int arg3) { // When user changed the Text FriendsActivity.this.adapter.getFilter().filter(cs); in the above line i am getting error. } public void beforeTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) { // TODO Auto-generated method stub } (HowTos)