N
N
Nikolai2020-05-03 08:17:51
Android
Nikolai, 2020-05-03 08:17:51

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:
5eae51d24d99b719009576.png
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

1 answer(s)
Y
yerdnaandrey, 2020-05-03
@yerdnaandrey

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 question

Ask a Question

731 491 924 answers to any question