1

Search bar above listview with all contacts not working.?

view story
linux-howto

http://stackoverflow.com – I had fetched the contacts from my application and showed it on a list view. I want to add a search bar on the listview. I had tried the following code. But it is not working fine. This is the code I am working on: et.addTextChangedListener(new TextWatcher() { @SuppressLint("ShowToast") @Override public void onTextChanged(CharSequence cs, int arg1, int arg2, int arg3) { // When user changed the Text Toast.makeText(context, cs.toString()+"", Toast.LENGTH_SHORT).show(); new MyBaseAdapter(context, myList).getFilter().filter(cs.toString()); } (HowTos)