Shikhar13 / codenameone

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

All WebView methods are not called in UI thread in AndroidBrowserComponent #321

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
getTitle, getURL, hasBack, and hasForward of AndroidBrowserComponent are still 
not called on the UI thread and will cause an exception similar to this:

09-08 19:09:21.362: W/webview(10550): 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.
09-08 19:09:21.362: W/webview(10550):   at 
android.webkit.WebView.checkThread(WebView.java:9468)
09-08 19:09:21.362: W/webview(10550):   at 
android.webkit.WebView.getTitle(WebView.java:3198)
09-08 19:09:21.362: W/webview(10550):   at 
com.codename1.impl.android.AndroidImplementation$AndroidBrowserComponent.getTitl
e(Unknown Source)
09-08 19:09:21.362: W/webview(10550):   at 
com.codename1.impl.android.AndroidImplementation.getBrowserTitle(Unknown Source)
09-08 19:09:21.362: W/webview(10550):   at 
com.codename1.ui.BrowserComponent.getTitle(Unknown Source)
09-08 19:09:21.362: W/webview(10550):   at 
com.tspx.tvportal.ui.form.SettingsForm$2$1.run(SettingsForm.java:103)
09-08 19:09:21.362: W/webview(10550):   at 
com.codename1.ui.Display.processSerialCalls(Unknown Source)
09-08 19:09:21.362: W/webview(10550):   at 
com.codename1.ui.Display.edtLoopImpl(Unknown Source)
09-08 19:09:21.362: W/webview(10550):   at 
com.codename1.ui.Display.mainEDTLoop(Unknown Source)
09-08 19:09:21.362: W/webview(10550):   at 
com.codename1.ui.RunnableWrapper.run(Unknown Source)
09-08 19:09:21.362: W/webview(10550):   at 
com.codename1.impl.CodenameOneThread.run(Unknown Source)

Original issue reported on code.google.com by Ian.Te...@gmail.com on 9 Sep 2012 at 12:11