title: error name: The method getFilter() is undefined for the type yourActivity.ListAdapter
body: <pre><code>private ArrayList &lt;HashMap&lt;String, Object&gt;&gt; availableFriends;
  public ListAdapter adapter = null;
  friendsearch = (EditText)findViewById(R.id.friendsearch);
          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);
  </code></pre>
  
  <p>In the above line i am getting the error ,here what i am trying to do is search in a custom list view (list view with image and name)
              }</p>
  
  <pre><code>        public void beforeTextChanged(CharSequence arg0, int arg1, int arg2,
                  int arg3) {
              // TODO Auto-generated method stub
  
          }
  
          public void afterTextChanged(Editable arg0) {
              // TODO Auto-generated method stub
          }
      });
  </code></pre>
  
  <p>below code shows you how i am getting the list data and how i am displaying the list data.
  if it required please watch it other wise leave it.</p>
  
  <pre><code>public List&lt;Friend&gt; getFriendsList(){
      String accessToken = null;
      DatabaseHelper helper = new DatabaseHelper(getApplicationContext());
      DatabaseUtility dao = new DatabaseUtility(helper);
      try {
          accessToken = dao.getAccessToken();
      } catch (Exception e1) {
          handler.sendEmptyMessage(1);
          return null;
      }
      if(accessToken == null || accessToken.length() == 0){
          handler.sendEmptyMessage(1);
          return null;
      }
  
      Map&lt;String , String&gt; params = new HashMap&lt;String,String&gt;();
      params.put(Constants.ACCESS_TOKEN_PARAM, accessToken);
  
      List&lt;Friend&gt; friendsList = null;
      try {
              friendsList = Utils.getFriendsList(params,this);
      } catch (NullPointerException e) {
          handler.sendEmptyMessage(12);
          return null;
      } catch (JSONException e) {
          //handler.sendEmptyMessage(11);
          return null;
      }
      return friendsList;
  }
  
  public void displayFriends(List&lt;Friend&gt; friendList){
      List&lt;Friend&gt; friendsList = friendList;
      availableFriends = new ArrayList&lt;HashMap&lt;String,Object&gt;&gt;();
      HashMap&lt;String, Object&gt; friendData = null;
      Friend friend = null;
      try{
          for(int i = 0 ; i &lt; friendsList.size() ; i++){
              friend = friendsList.get(i);
              friendData = new HashMap&lt;String, Object&gt;();
              friendData.put(FRIENDS_NAME_KEY, friend.getFriendName());
              friendData.put(IS_IMAGE_KEY, friend.getIsImage());
              friendData.put(IDKEY, friend.getFriendID());
              availableFriends.add(friendData);
          }
  
      adapter = new ListAdapter(availableFriends,FriendsActivity.this);
      listView.setAdapter(adapter);
      listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
  </code></pre>