crnv
crnv

Reputation: 316

Is it safe to call loadData() of WebView in the UI thread?

A simple example:

webview.loadData("http://example.com/html_with_image.php","text/html",null);

The loaded page looks like this:

<html>
  <body>
    <img src="lena.jpg" width="768" height="1024">
  </body>
</html>

Since transferring the image may take some time I was wondering if loadData()has to be threaded.

Upvotes: 1

Views: 777

Answers (1)

JustDoingIt
JustDoingIt

Reputation: 146

WebView is loading async anyway, so you shoudnt worry about that.

Upvotes: 4

Related Questions