title: Deep linking the right page inside the webview
body: <p>I made a android webview app for our website. Now i want to add deep links to the app, like when somebody clicks a link of our website, you can open it with the webview app instead of chrome web browser. I added these to my manifest:</p>
  
  <pre><code>&lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.VIEW" /&gt;
      &lt;category android:name="android.intent.category.DEFAULT" /&gt;
      &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
  
      &lt;data android:scheme="https"
            android:host="www.example.com" /&gt;
  </code></pre>
  
  <p>Now it opens the webview app when I click a link which is related to us, but it doesnt open the right page, its just starting the app again. But I want to open the directly the right page inside the webview app. </p>
  
  <p>EDIT:</p>
  
  <pre><code>    @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      //added
      Intent intent = getIntent();
      String action = intent.getAction();
      Uri data = intent.getData();
  </code></pre>
  
  <p>But it seems that the variables action and data are not used.
  I load the webview like this (for three languages).</p>
  
  <pre><code> //loads the main website
   //sets the matching language
   web2.clearCache(true);
      String loc = Locale.getDefault().toString();
      if (loc.startsWith("de")) {
          web2.loadUrl("https://www.example.de");
      } else if (loc.startsWith("nl")) {
          web2.loadUrl("https://www.example.nl");
      } else {
          web2.loadUrl("https://www.example.com");
      }
  </code></pre>