Hello.

I created a webview in android studio through fullscreen-activity I wrapped this site here: http://gp-cpi.ru/index_games_en.html

If you open it in mobile chrome, then the links lead to Google Play for applications, everything works correctly. And from my view links do not work, I attach a screen enter image description here

How do i fix this?

I also made an empty activity so that nothing would interfere. also does not work.

  • Try to write more detailed questions. Explain exactly what you see the problem, how to reproduce it, what you want to get as a result, etc. - Nicolas Chabanovsky

1 answer 1

If I correctly understood your problem, then shouldOverrideUrlLoading is what you need. The documentation for the shouldOverrideUrlLoading method in WebViewClient reports:

By default, it’s possible that you’ll find out how to use it.

Make sure that your code describes the method shouldOverrideUrlLoading , which decides whether to load the URL in the PlayMarket application or open it with WebView . You may need to parse the URL and extract the scheme .

Source: https://stackoverflow.com/a/13886357/5110414