Inject a JavaScript API on everypage loaded on WebView
问题 I am coding a offline Scorm player, so need to inject an JavaScript API on every html page loaded by the WebView instance. I tried to use a frame-set approach, but WebView doesnt behave the way it should (besides that, its deprecated in HTML5). How can I achieve this? I need the script to be injected before the page loads, because those html pages will consume the API on the body onLoad event.. When trying to to override the 'onPageStarted' WebViewClient method, although the event was fired,