hi i am new to android what i did is creating a list with strings and implementing the search using edit text,my code for this is as fallows
((EditText)findViewById(R.id.EditText01)).setOnKeyListener(new OnKeyListener()
{
public boolean onKey(View v, int keyCode, KeyEvent event)
{ String enteredText = ((EditText)findViewById(R.id.EditText01)).getText().toString();
Iterator<String> strIt = strList.iterator();
while(strIt.hasNext()){
String str = strIt.next();
if(str.startsWith(enteredText)){
match.add(str);
}
}
}
it works when focus is changed form edit text,but i need to work it like quick search box.when ever i enter a letter in edit text,the matching words will be displayed.how can i done this.pls post some code.Thank u in advance.