Use URL to show new activity?

Inside my application, I was interested to know if it is possible to make a specific URL in WebView by clicking to redirect to a new kind of activity outside of WebView?

Thank!

+3
source share
2 answers

You can track events in WebViewusing WebViewClient. You want to shouldOverrideUrlLoading(). This allows you to perform your action when a specific URL is selected.

You set WebViewClientyour own WebViewusing the method setWebViewClient().

Intent "" URL-. , :

  • , URL-.
  • URL- .
+3

, Activity. - URL- , . , , Activity .

+1

Source: https://habr.com/ru/post/1727020/


All Articles