Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

WebView methods not called on UI thread in AndroidImplementation #301

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When calling the BrowserComponent methods (and therefore the WebBrowser 
mehtods), I get the following error in the DDMS log:

"java.lang.Throwable: Warning: A WebView method was called on thread 'EDT'. All 
WebView methods must be called on the UI thread. Future versions of WebView may 
not support use on other threads."

The AndroidBrowserComponent class inside AndroidImplementation should call all 
the WebView methods on the web property on the UI thread using 
activity.runOnUiThread.

Original issue reported on code.google.com by Ian.Te...@gmail.com on 20 Aug 2012 at 1:43

GoogleCodeExporter commented 9 years ago
issue 180 was closed recently that should have resolved this one.

Original comment by eric.coo...@gmail.com on 20 Aug 2012 at 3:23

GoogleCodeExporter commented 9 years ago
Chen can you confirm this is no longer relevant?

Original comment by shai.almog on 20 Aug 2012 at 3:44

GoogleCodeExporter commented 9 years ago
I just checked the latest AndroidImplementation.java in svn; the 
AndroidBrowserComponent inner class does NOT call the WebView methods on the UI 
thread, so the issue was not resolved.

Original comment by Ian.Te...@gmail.com on 20 Aug 2012 at 1:06

GoogleCodeExporter commented 9 years ago
fixed, thanks

Original comment by cf27...@gmail.com on 27 Aug 2012 at 4:24