Android – how do I get MIME types from a web view?
•
Android
I am about to develop a browser plug-in to detect whether the page is WML. If so, it will be converted to HTML through API
What I want to do is override onpagefinished in webviewclient and get MIME type from WebView. However, there seems to be no such method in these two classes
What did I miss or is there another way? Any suggestions would be appreciated
resolvent:
You can try using mimetypmap
Getfileextensionfromurl() followed by getmimetypefromextension()
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码