title: how to start third activity if url is same in webview
body: <p>how to start third activity if url is same in webview</p>
  
  <p>for example i have webview 
  in my webview if url is like this</p>
  
  <p><a href="http://example.com/access.html" rel="nofollow noreferrer">http://example.com/access.html</a></p>
  
  <p>then start thirdactivity </p>
  
  <p>how can i do this please help me to fix this issue
   thanks</p>
  
  <p>in advance</p>
  
  <p>here is my webview code</p>
  
  <pre><code>public class SecondActivity extends AppCompatActivity {
  
      private WebView wv1;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_second);
          String url = getIntent().getStringExtra("url");
          wv1=(WebView)findViewById(R.id.webView);
          wv1.setWebViewClient(new WebViewClient());
          wv1.getSettings().setLoadsImagesAutomatically(true);
          wv1.getSettings().setJavaScriptEnabled(true);
          wv1.loadUrl(url);
      }
  
  
  
  
  }
  </code></pre>
  
  <p>here is xml file of secondactivity</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/colorPrimaryDark"
  
      tools:context="com.shuvro.barcodescanner.BarcodeScannerActivity"&gt;
  
  
      &lt;WebView
          android:id="@+id/webView"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>