B4X:
Sub Activity_Click
FindAll(WebView1, "Basic4android")
End Sub
Sub FindAll (w As WebView, s As String) As Int
Dim r As Reflector
r.Target = w
Return r.RunMethod2("findAll", s, "java.lang.String")
End Sub
I load a long html text in webview ,find and highlight all the keyword with above code, I want to see them one by one,but when I use below code,error occurred:"NoSuchMethodException: findNext [class java.lang.String]", Where is my fault?
B4X:
Sub FindNext_Click
FindNext(WebView1, "Basic4android")
End Sub
Sub FindNext (w As WebView, s As String) As Int
Dim r As Reflector
r.Target = w
Return r.RunMethod2("findNext", s, "java.lang.String")
End Sub