Answer the question
In order to leave comments, you need to log in
Android. How to remove brakes in WebView when JavaScript function is used?
Good afternoon!
I am writing an Android application and it has a WebView. Through the loadUrl() method, I call a JavaScript function that passes in my position and draws a marker.
It looks like this:
webView.post(new Runnable() {
@Override
public void run() {
webView.loadUrl("javascript:send_location(" + x + ", " + y + ")");
}
});
Answer the question
In order to leave comments, you need to log in
Alternatively, you can try Crosswalk as a replacement for the standard WebView.
https://habrahabr.ru/post/263649/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question