I have a custom html(suppose a.html) file which i am using from the resources and thus building a string with the entire document which is then passed to the WebView.
There’s some text in a.html on click of which i want load another file b.html in the webview itself.
Please let me know what is the apporach to be followed here.
Step #1: Implement a
WebViewClient, overridingshouldOverrideURLLoading().Step #2: In
shouldOverrideURLLoading(), load what you want — this will be called on link clicks and redirects, and you are supplied the URL that ordinarily would be loaded.