I am using a SearchView in the Action Bar. I want to use autocomplete feature on the search view to get results from the database.
Is this possible? Or do I need to
You can do this with a CursorAdapter via something like:
MenuItem searchItem = menu.findItem(R.id.action_search); SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchItem); searchView.setSuggestionsAdapter(adapter);