F Francisco Gonzalez 1962 Member Licensed User Aug 22, 2019 #1 I've placed a disclaimer.html file in Objects\bin\extra\assets folder After compiling/running my program to display disclaimer.html using: WebView1.LoadUrl("file:///android_asset/disclaimer.html") I get an error message: Web page not available It was not possible to load the web page file:///android_asset/disclaimer.html because: net::ERR_FILE_NOT_FOUND After this trial, I checked the folder with windows file manager and it's empty with a message saying we are working on it
I've placed a disclaimer.html file in Objects\bin\extra\assets folder After compiling/running my program to display disclaimer.html using: WebView1.LoadUrl("file:///android_asset/disclaimer.html") I get an error message: Web page not available It was not possible to load the web page file:///android_asset/disclaimer.html because: net::ERR_FILE_NOT_FOUND After this trial, I checked the folder with windows file manager and it's empty with a message saying we are working on it
DonManfred Expert Licensed User Longtime User Aug 22, 2019 #2 this is the normal behaviour. to prevent this you need to make the files readonly. The correct way would be to place the files in your projects files folder and load them from there. Upvote 0
this is the normal behaviour. to prevent this you need to make the files readonly. The correct way would be to place the files in your projects files folder and load them from there.
Erel B4X founder Staff member Licensed User Longtime User Aug 23, 2019 #4 Never use file:///android_asset. It will not work in debug mode. Use XUI.FileUri instead. Upvote 0