is it possible to get the result of a call to
LWebView.evaluateJavascript(StringToJString('test'), fJavaScriptValueCallback);
instantly? My problem is that the event of the fJavaScriptValueCallback is called after my following code.
In VCL Delphi i would write an Application.ProcessMessages, till i got the answer from the WebBrowser, but this didn't work in FMX/Android.
Is there an other way to force the result or to get the values of the HTML Elements?
evaluateJavascript()runs asynchronously, you have to deal with the callback, that is simply how it works. You will just have to move your "following code" into the callback (or otherwise have the callback trigger the code). A lot of things in Android run asynchronously.