Android Question Is it normal that .html files in Objects\bin\extra\assets dissapear after compile/run? [Solved]

Francisco Gonzalez 1962

Member
Licensed User
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
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.
 
Top