I have created a filter listview where user will enter input via edittext and results are filtered in the listview.
The code is running good but when ever i press Sp
do this way:
public void afterTextChanged(Editable s) { String st = s.toString().trim(); NearByActivity.this.aa.getFilter().filter(st); }
but don't do filtering this way, here is the correct one.