code: public static void setUpSearchView(SearchView view, Activity act) {
          SearchManager searchManager = (SearchManager) act.getSystemService(Context.SEARCH_SERVICE);
          view.setSearchableInfo(searchManager.getSearchableInfo(act.getComponentName()));
          view.setQueryRefinementEnabled(true);
      }
docs: This sets up a search view to use Calendar's search suggestions provider
  and to allow refining the search.
  
  @param view The {@link android.widget.SearchView} to set up
  @param act  The activity using the view