title: Why is the onPageFinished method not recognized?
body: <p>Basically my search engine logo updates every so often. Trouble is the webpage never updates unless I reinstall the app, so I've disabled the cache.</p>
  
  <p>However it keeps saying:</p>
  
  <blockquote>
    <p>Cannot resolve method 'onPageFinished(android.webkit.WebView,java.lang.String)'</p>
  </blockquote>
  
  <p>Here's my code</p>
  
  <pre><code>package tk.burningflame.flamesearch;
  
  import android.support.v7.app.ActionBarActivity;
  import android.os.Bundle;
  import android.view.KeyEvent;
  import android.webkit.WebView;  //import WebView class
  import android.webkit.WebViewClient;  //import WebViewClient class
  
  public class MainActivity extends ActionBarActivity {
  
      @Override
      public void onBackPressed() {
          if (webView.canGoBack()) {
              webView.goBack();
          } else {
              super.onBackPressed();
          }
      }
  
      @Override
      public void onPageFinished(WebView view, String url) {
          super.onPageFinished(view, url);
          view.clearCache(true);
      }
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
  
          WebView view = (WebView) this.findViewById(R.id.webView);
          view.getSettings().setJavaScriptEnabled(true);
          view.setWebViewClient(new MyBrowser());
          view.loadUrl("http://www.burningflame.tk/search");
      }
  
      private class MyBrowser extends WebViewClient {
          @Override
          public boolean shouldOverrideUrlLoading(WebView view, String url) {
              view.loadUrl(url);
              return false;
          }
      }
  }
  </code></pre>