title: How to use "pauseTimers"
body: <p>I want to create an app for WebView in android, how i can stop the WebView with "onPause()" i have tried to use this code:</p>
  
  <pre><code>    @Override
  public void onPause(){
      super.onPause();
      WebView.pauseTimers();
  }
  </code></pre>
  
  <p>But it don't work, it says:</p>
  
  <pre><code>Error: non-static method pauseTimers() cannot be referenced from a static context
  </code></pre>
  
  <p>This is the all code of WebView</p>
  
  <pre><code>@Override
  
  public void onCreate(Bundle savedInstanceState) {
  
      super.onCreate(savedInstanceState);
  
      setContentView(R.layout.activity_main);
  
      WebView myWebView = (WebView) findViewById(R.id.webview);
  
      myWebView.setWebViewClient(new WebViewClient());
  
      myWebView.loadUrl("MyURL");
  
      WebSettings webSettings = myWebView.getSettings();
  
      webSettings.setJavaScriptEnabled(true);
  
  }
  </code></pre>