Hello all,
while testing "musical notation" -
An error an ocurred in sub: abcsongs_calljavascript (java line:123).
A Webview method was called on thread 'JavaBridge'. All Webview methods must be called on the same thread.
In this arrangement, the musical score is not displayed in any way.
do you have any idea for a solution?
while testing "musical notation" -
An error an ocurred in sub: abcsongs_calljavascript (java line:123).
A Webview method was called on thread 'JavaBridge'. All Webview methods must be called on the same thread.
B4X:
'Javascript injection to call JS functions
Private Sub CallJavaScript(WV As WebView, JSString As String)
WV.LoadUrl(JSDomain & JSString)
End Sub
'JS Calls
Sub Load(FilePath As String,FileName As String)
Loaded = False
Loading = True
Dim FileData As String = File.ReadString(FilePath,FileName)
Dim FileArr() As Byte = BC.StringToBytes(FileData,"UTF-8")
Dim JSString As String = "loadFile(" &SU.EncodeBase64(FileArr) & ")"
CallJavaScript(WebView1, JSString)
End Sub
In this arrangement, the musical score is not displayed in any way.
do you have any idea for a solution?
Attachments
Last edited: