B4J Question How to load a html file from DirAssets ? - Erel (first post)    Jul 28, 2020   (3 reactions) Better to use XUI.FileURI which is cross platform. B4A Question xui.FileUri(File.DirAssets, nname) works with TargetSDK28 but not with TargetSDK30 - Lucas Siqueira (first post)    Nov 13, 2021   (1 reaction) if you are using webview just to display an image, then use b4ximageview or zoomimageview
https://www.b4x.com/android/forum/threads/b4x-b4ximageview-imageview-resize-modes.121359/
https://www.b4x.com/android/forum/threads/b4x-zoomimageview-cross-platform-zoomable-pannable-image-view.119987/ B4A Code Snippet [B4X] Use WebView to show large images - Erel    Sep 04, 2021   (19 reactions) Better to use: HugeImageView - show very large images Depends on: XUI and JavaObject. 'xui is a global XUI object. Private Sub ShowImage(WV As WebView, Dir As String, FileName As String) #if B4A Dim jo As JavaObject = Me jo.InitializeContext 'comment this line if calling this code from Bug? xui.FileUri not 100% crossplatform due to missing traling slash - sorex    Dec 09, 2018 Hello,
I notice that I still need to use OS depending code exeptions while using
xui.FileUri(file.dirAssets,"")
the reason is that the B4A result has a trailing slash but B4i doesn't.
Can this be normalized so that both results are the same (both with or without trailing slash)? German Datei an PC senden - b4x-de (first post)    Jul 29, 2023 Versuche bitte zu ergänzen:
Dim x as XUI
Dim u As String
u = x.FileUri(File.DirInternal, Datei2)
Und in Zeile 68 dann anstelle von Starter.Provider.GetFileUri(....) einfach u
Geht das?
Schau auch mal hier:
https://www.b4x.com/android/help/xui.html#xui_fileuri B4A Question SOLVED - B4XPages Help Files - Erel (first post)    Sep 20, 2020 Correct solution is to use XUI.FileUri. B4A Question Loading html file to webview. - kisoft (first post)    Sep 07, 2019   (5 reactions) Hi Dim xui As XUI WebView1.LoadUrl(xui.FileUri(File.DirAssets, "main.html")) Wish Let xui.getFileUri() consider URI fragment identifiers (i.e. #section1) - b4x-de    Aug 11, 2020   (1 reaction) The current situation is: ' Using localy saved file ' Does not work WebView1.LoadUrl(xui.FileUri(File.DirAssets, "simple.html#scroll1")) ' File is not found ' Does work WebView1.LoadUrl(xui.FileUri(File.DirAssets, "simple.html") & "#scroll1") ' Scrolls to URL fragment I would like to use getFile B4A Question WebView, HTML - Erel (first post)    Feb 28, 2019 This is a mistake.
XUI.FileUri is the best way to get a link to a local file.
I don't understand how an html file can be a source of an img element... B4A Question Access pics in file.dirassets from an html page. - Peter Simpson (first post)    Apr 11, 2021 User XUI.FileUri, it's that simple...
WebView1.LoadHtml($"<img src="${xui.FileUri(File.DirAssets, "smiley.png")}" />"$)
'or:
WebView1.LoadUrl($"${xui.FileUri(File.DirAssets, "smiley.png")}"$) Page: 1   2   3   4   5   6   7   Powered by ColBERT |