Hi, I am having a problem with webview. I've created a media player that plays an mp3 and displays an image at the same time. Because I want the user to be able to zoom in and out of the image, I display the images in a webview (correct me if I'm wrong but there is no way to do this with an imageview?).
This approach is working fine, just to clarify the core code (have missed out anything not relevant):-
Sub Globals
Dim wb_image As WebView
End Sub
Sub Activity_Create(FirstTime As Boolean)
wb_image.Initialize("")
End Sub
Sub loadImage
wb_image.LoadHtml("<html><body><img src etc etc etc /></body></html>")
End Sub
This is all working and loading fine. The problem is when I move from one track to the next.
If the web image IS NOT zoomed in anyway, then loadImage works fine.
If the web image IS zoomed, loadImage doesn't work, and the old image remains.
Here are a few things I've tried to fix it:-
All with no result. Sure there is someone who will know what the problem is - seems to be a bug but I assume there must be some kind of workaround.
Thanks everyone!
This approach is working fine, just to clarify the core code (have missed out anything not relevant):-
Sub Globals
Dim wb_image As WebView
End Sub
Sub Activity_Create(FirstTime As Boolean)
wb_image.Initialize("")
End Sub
Sub loadImage
wb_image.LoadHtml("<html><body><img src etc etc etc /></body></html>")
End Sub
This is all working and loading fine. The problem is when I move from one track to the next.
If the web image IS NOT zoomed in anyway, then loadImage works fine.
If the web image IS zoomed, loadImage doesn't work, and the old image remains.
Here are a few things I've tried to fix it:-
- re initialize the web view in loadImage. Result = no change
- disable web zoom, then load image, then enable web zoom. Result = no effect
- Call a subroutine to reload the entire activity e.g. 'CallSub("", "Activity_Create"). Result = can't get this to work
All with no result. Sure there is someone who will know what the problem is - seems to be a bug but I assume there must be some kind of workaround.
Thanks everyone!