Answer the question
In order to leave comments, you need to log in
The offline site does not open in the android application. What's the matter?
I put together a simple application on android studio, which should open offline (the html / css / js / img files inside the application), but I see this:
This is if the html file is in the assets folder (the path is file:///android_assets/www/index .html).
I tried to place html in the raw folder (file:///android_res/raw/index.html path). In this case, the site opens, but without css/js/img.
Now I tried to place the html file in the raw directory, and everything else in file:///android_assets/www, and html was registered
. Still not displayed.
Neither css nor js work either. So I'm doing something wrong, but what exactly? Tell me please
<img src="file:///android_assets/www/file.png>
Answer the question
In order to leave comments, you need to log in
Not , but
And also, "file:///" is out of place here <img src="file:///android_assets/www/file.png>
<img src="file:///android_assets/www/file.png">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question