I’m about to develop a browser plugin that detects whether a page is WML and if so, it will be transformed to HTML via an API.
What I want to do is override onPageFinished in WebViewClient and get MIME type from WebView. But there seems no such kind of methods in those two classes.
Am I missing anything or are there some other approaches? Any advice given will be appreciated.
I have just come up with an idea and seems work.
Load a javascript with
loadUrlwhen the page is finish loading (onProgressChangeto 100%). The js code is like