public void populateEditText(ArrayList<String> matches){
  toggleSearch();
  String text="";
  for (int x=0; x < matches.size(); x++) {
    text=text + matches.get(x) + " ";
  }
  text=text.trim();
  setSearchString(text);
  search(text);
}

public void populateEditText ( ArrayList < String > matches ) { toggleSearch ( ) ; String text = "" ; for ( int x = 0 ; x < matches . size ( ) ; x ++ ) { text = text + matches . get ( x ) + " " ; } text = text . trim ( ) ; setSearchString ( text ) ; search ( text ) ; }
populate the searchbox with words , in an arraylist . used by the voice input
