when I upload the url to the webview. It loads great.
but I touch anything in this web browser, it is redirected to the browser by default.
how to set the link to load in the same web browser.
thank.
Deploy WebViewClientoverriding shouldOverrideUrlLoading()to tell Android what you want to do when you click the link. Attach WebViewClientto WebViewthrough setWebViewClient().
WebViewClient
shouldOverrideUrlLoading()
WebView
setWebViewClient()
Source: https://habr.com/ru/post/1732662/More articles:Performance bottleneck - Linq to SQL or database - how do I say? - performanceНеправильно ли прервать c-строку с 0 вместо "\ 0"? - cOutOfMemory error while trying to retrieve a large jar using ZipFileSet - javasecret key for iphone access device - securityUnexpected output Prolog script - prologHelp with basic keys and unique constraints - sqlHow do we have a unit testing philosophy? - unit-testingMySQL: is there something like an internal record identifier for each record in a MySQL table? - mysqlDependency injection when you do not control creation and use - phphttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1732667/adding-an-active-css-class-to-navigation-with-jquery&usg=ALkJrhh64gL68chpW7kPu_EIhXnbMzsGzgAll Articles