B4A 6.31
I am probably doing something silly so any help appreciated.
I have a simple html file in the files folder.
This is displayed in a WebView with
I also have
so that it works with the rapid debugger.
The picture "RIMG1937c.jpg" is also in the files folder.
The result i get when running the app depend upon whether or not i have added "RIMG1937c.jpg" to the files tab.
If it is just in the folder and not added to the tab the picture displays correctly but i get warning 14 - file not added to files tab.
If i add it to the files tab the picture is not displayed - just a place holder is shown.
It looks looks like <img src="file:///android_asset/RIMG1937c.jpg"/> is not the correct location when the file is added to the files tab. Does the path need changing or is something else wrong?
I am probably doing something silly so any help appreciated.
I have a simple html file in the files folder.
B4X:
<html><body bgcolor=#FFFFFF>
<h1> Title of the document </h1>
<br/>
<p2>
<input type="button" value="Hello" />
Hello world!
<br/>
<img src="file:///android_asset/RIMG1937c.jpg"/>
<br/>
Second line
<br/>
Third line
</p2>
</body>
</html>
This is displayed in a WebView with
B4X:
WebView1.LoadUrl("file:///android_asset/startup.html")
I also have
B4X:
#DebuggerForceStandardAssets: true
The picture "RIMG1937c.jpg" is also in the files folder.
The result i get when running the app depend upon whether or not i have added "RIMG1937c.jpg" to the files tab.
If it is just in the folder and not added to the tab the picture displays correctly but i get warning 14 - file not added to files tab.
If i add it to the files tab the picture is not displayed - just a place holder is shown.
It looks looks like <img src="file:///android_asset/RIMG1937c.jpg"/> is not the correct location when the file is added to the files tab. Does the path need changing or is something else wrong?