When i try to make this code
i get error when try to write any thing to label (i try to add label using code or using Activity.LoadLayout)
any help
Thank you
B4X:
Sub WebView1_PageFinished (Url As String)
Dim Javascript As String
Javascript="B4A.CallSub('ProcessHTML', false, document.documentElement.outerHTML)"
WebViewExtras1.executeJavascript(MyWebV, Javascript)
End Sub
Sub ProcessHTML(Html As String)
ProcessHtmlData(Html)
Label1.Text="Any Thing"
End Sub
B4X:
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
Thank you