Android Question Image in HTML code

AlpVir

Well-Known Member
Licensed User
Longtime User
HTMLText is a string variable that contains HTML-formatted text.
With the following instructions I display this text in a WebView.
Also I see an image stored in DirAssets.

B4X:
H=HTMLText.Replace("....................","<img border='0' src='file:///android_asset/logo.png' width=780px height=199px>")
WebviewPDF.LoadHtml(h)

If instead the image was stored in DirRootExternal how should I modify the code ?
Thanks in advance
 
Top