i am try to search record from local database into listview but listview cant refresh ..
What I have tried:
edSearch.addTextChangedListener(new TextWatcher() {
@Override
public void onTextChanged(CharSequence arg0, int arg1, int arg2,
int arg3) {
String sSearch = edSearch.getText().toString();
SiCommon oDb = new SiCommon(Constants.PACKEGEDIRECTORYPATH,
Constants.DBNAME);
String sSelectQuery = ("SELECT * FROM stud_table WHERE Name LIKE '%"
+ sSearch + "%'");
Log.e("MAIN ACTIVITY", sSelectQuery);
oDb.getList(sSelectQuery);
}
@Override
public void beforeTextChanged(CharSequence arg0, int arg1,
int arg2, int arg3) {
}
@Override
public void afterTextChanged(Editable arg0) {
}
});