i want to use this library for following use cases
Prashanth-Nelli opened this issue · 2 comments
i want to use this library to download web pages ,parsing html string.
which version of javascript this library supports
AndroidJSCore
is purely a JavaScript runtime environment. It is not a full-blown browser and therefore does not include web features. Downloading web pages requires access to HTTP(S) and parsing HTML requires the DOM. Neither are part of JavaScriptCore. Instead they are part of WebCore, which I have not ported.
In your case, this may not be the right project for you. Have you tried just using a WebView
and calling [evaluateJavascript
](https://developer.android.com/reference/android/webkit/WebView.html#evaluateJavascript%28java.lang.String, android.webkit.ValueCallback<java.lang.String>%29)? It will be much slower than AndroidJSCore
, but it should do what you want.
@ericwlange thanks for the help.
I want to do fetching and parsing in the background process.
using webview in this case is not possible as webview can only be accessible in ui thread.