title: How to move another activity in webview redirecting url
body: <p>I have a webview to show a webpage. In that webpage button click event i'm redirecting to another page. From there another button click event im redirection to 3rd page. Instead of redirecting to 3rd page i need to show my next activity.  </p>
  
  <p>I'm using the following code but my first page itself not loading  </p>
  
  <pre><code>            @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.login_page);
      WebView webview = (WebView) findViewById(R.id.wvLogin);
  
      setContentView(webview);    
      webview.setWebViewClient(new WebViewClient()
      {
          // Override URL
  
          public boolean shouldOverrideUrlLoading(WebView view, String url)
          {
              if(url.equals("http://My 3rd page redirecting URL"))
              {                       
                  Intent i = new Intent(getApplicationContext(), APImages.class);
                  startActivity(i);                   
              }           
              return true;
          }
  
      });
  
      webview.loadUrl("http://Default URL to load first time");
  
  }
  </code></pre>
  
  <p>Please tell me how to preceed it?</p>