How to load a local html by using Android WebView?

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


How to load a local html by using Android WebView?


mWebView.loadUrl("file:///android_asset/test.html");



I have known this way to load the html at asserts directory.
However, I want to load a html at another directory, such as "/src/test.html","/src/main/test.html"... Can WebView load like this?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

fqwc1a1a97H
z63Io8jDDdzCsE0kc,4b6X6 AC 0 x32lZ,6 r739l lmnX

Popular posts from this blog

Makefile test if variable is not empty

Visual Studio Code: How to configure includePath for better IntelliSense results

Will Oldham