Why The constructor ArrayAdapter(new View.OnKeyListener(){}, int, String[]) is undefined in following my coding. This coding is for fetching data from SQLite when typing wor
I know this is ridiculously late but I usually use getActivity() in this circumstance. So it would look like this:
getActivity()
ArrayAdapter adapter = new ArrayAdapter(getActivity(), R.layout.autosuggest, countries); ed1.setAdapter(adapter);