title: Android SearchView Filter ListView
body: <p>I have implemented Search Filter to my SearchView in my SherlockAction Bar. </p>
  
  <p>When i type m i want to show filtered results in the list view below which only starts with M and so on. But now it shows random results.</p>
  
  <p><img src="https://i.stack.imgur.com/0cBay.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/09mKd.png" alt="enter image description here"></p>
  
  <pre><code>public boolean onQueryTextChange(String newText) {
      Log.i("Nomad", "onQueryTextChange");
  
      if (TextUtils.isEmpty(newText)) {
          adapter.getFilter().filter("");
          Log.i("Nomad", "onQueryTextChange Empty String");
          placesListView.clearTextFilter();
      } else {
          Log.i("Nomad", "onQueryTextChange " + newText.toString());
          adapter.getFilter().filter(newText.toString());
      }
      return true;
  }
  
  public boolean onQueryTextSubmit(String query) {
      Log.i("Nomad", "onQueryTextSubmit");
      return false;
  }
  
  public boolean onClose() {
      Log.i("Nomad", "onClose");
      return false;
  }
  </code></pre>