title: Which method is called when query-text changes in SearchView, while both Search suggestions and OnQueryTextListener interface are implemented?
body: <p>In the Android Documentation, in topic '<strong><em>Adding Custom Suggestions</em></strong>' for Search feature, it says that: </p>
  
  <blockquote>
    <p>When the user starts typing into the search dialog or search widget, the system queries your content provider for suggestions by calling <code>query()</code> each time a letter is typed.</p>
  </blockquote>
  
  <p>Source: <a href="https://developer.android.com/guide/topics/search/adding-custom-suggestions.html#CustomContentProvider" rel="nofollow" title="Custom Search suggestionsquot;">https://developer.android.com/guide/topics/search/adding-custom-suggestions.html#CustomContentProvider</a></p>
  
  <p>Also, in the documentation on <strong><code>SearchView.OnQueryTextListener</code></strong> interface (which is supposed to provide <strong>Callbacks for changes to the query text</strong>), the method <code>onQueryTextChange (String newText)</code>is</p>
  
  <blockquote>
    <p>Called when the query text is changed by the user.</p>
  </blockquote>
  
  <p>Source: <a href="https://developer.android.com/reference/android/widget/SearchView.OnQueryTextListener.html#onQueryTextChange%28java.lang.String%29" rel="nofollow">https://developer.android.com/reference/android/widget/SearchView.OnQueryTextListener.html#onQueryTextChange%28java.lang.String%29</a></p>
  
  <p>I am trying to implement <code>SearchView.OnQueryTextListener</code>to make sure that the <em>Loader</em> is restarted in the call to <code>onQueryTextChange (String newText)</code> to deal with the "next" query because Android does not execute the query again when the query-text changes after first search(i.e. once a search has already been performed once). </p>
  
  <p><strong>My question is</strong>: If both <strong>Custom Search suggestions</strong> and <strong><code>SearchView.OnQueryTextListener</code></strong> interface have been implemented, then, which of these two methods <code>query()</code> (called by the Android system) and <code>onQueryTextChange (String newText)</code> (callback method) is called when the query text changes in SearchView widget?</p>