Vignesh
Vignesh

Reputation: 741

Using multiple webviews in Android to simulate the Javascript threads

I'm writing an Android app using webview. The app gets the data from the remote server and plots the data in html5 canvas. but while doing this I'm not able to use the UI controls. I thought of using the web workers but found that Android webview doesn't support web workers.

My question is if I use multiple webviews will it create separate js thread for each web View?

Upvotes: 2

Views: 956

Answers (1)

myself
myself

Reputation: 502

No, javascript and web page layouting in all WebViews run on the same thread - WebViewCoreThread; although things may change in future Android versions.

Upvotes: 3

Related Questions