Search code examples
androidandroid-activitywebviewclientwebchromeclient

How to start another activity from webChromeClient


In webViewClient I use shouldOverrideUrlLoading to check a link/url and load another activity but how can I do the same trick in webChromeClient?


Solution

  • You can't do that in a webChromeClient. You have to set both, webViewClient and webChromeClient.