D db0070 Active Member Licensed User Longtime User Jan 19, 2016 #1 I have two questions:- 1. The following code works in debug mode, and I can see my picture, but does not work in release mode. why is that? Code: imgArr.LoadUrl("file://" & File.Combine(File.DirAssets, arrURL(counter))) 2. Then I used this code, and this works in release and debug, so problem solved. The image I am displaying is animated gif image which loops once. How do I get it to loop again if the user clicks on it? Code: linktoimage = File.Combine(File.DirAssets, arrURL(counter)) imgArr.LoadHtml("<html><head></head><body><img src=' " & linktoimage & " '></body></html>")
I have two questions:- 1. The following code works in debug mode, and I can see my picture, but does not work in release mode. why is that? Code: imgArr.LoadUrl("file://" & File.Combine(File.DirAssets, arrURL(counter))) 2. Then I used this code, and this works in release and debug, so problem solved. The image I am displaying is animated gif image which loops once. How do I get it to loop again if the user clicks on it? Code: linktoimage = File.Combine(File.DirAssets, arrURL(counter)) imgArr.LoadHtml("<html><head></head><body><img src=' " & linktoimage & " '></body></html>")
Erel B4X founder Staff member Licensed User Longtime User Jan 20, 2016 #2 1. This is a limitation of WebView. I will add a note about it in the documentation. Seems like LoadUrl doesn't support bundled files. In debug mode the files are copied into a different folder so it works. 2. Have you tried to call LoadHtml again? Upvote 0
1. This is a limitation of WebView. I will add a note about it in the documentation. Seems like LoadUrl doesn't support bundled files. In debug mode the files are copied into a different folder so it works. 2. Have you tried to call LoadHtml again?