Android error: java.lang.Throwable: EventHub.removeMessages(int what = 107) is not supported before the WebViewCore -


i have error logging happening in background:

10-06 14:05:47.787: w/webcore(554): java.lang.throwable: eventhub.removemessages(int = 107) not supported before webviewcore set up. 10-06 14:05:47.787: w/webcore(554):     @ android.webkit.webviewcore$eventhub.removemessages(webviewcore.java:1683) 10-06 14:05:47.787: w/webcore(554):     @ android.webkit.webviewcore$eventhub.access$7900(webviewcore.java:926) 10-06 14:05:47.787: w/webcore(554):     @ android.webkit.webviewcore.removemessages(webviewcore.java:1795) 10-06 14:05:47.787: w/webcore(554):     @ android.webkit.webview.sendourvisiblerect(webview.java:2917) 10-06 14:05:47.787: w/webcore(554):     @ android.webkit.zoommanager.setzoomscale(zoommanager.java:593) 10-06 14:05:47.787: w/webcore(554):     @ android.webkit.zoommanager.access$1700(zoommanager.java:49) 10-06 14:05:47.787: w/webcore(554):     @ android.webkit.zoommanager$postscale.run(zoommanager.java:984) 10-06 14:05:47.787: w/webcore(554):     @ android.os.handler.handlecallback(handler.java:605) 10-06 14:05:47.787: w/webcore(554):     @ android.os.handler.dispatchmessage(handler.java:92) 10-06 14:05:47.787: w/webcore(554):     @ android.os.looper.loop(looper.java:137) 10-06 14:05:47.787: w/webcore(554):     @ android.app.activitythread.main(activitythread.java:4424) 10-06 14:05:47.787: w/webcore(554):     @ java.lang.reflect.method.invokenative(native method) 10-06 14:05:47.787: w/webcore(554):     @ java.lang.reflect.method.invoke(method.java:511) 10-06 14:05:47.787: w/webcore(554):     @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:784) 10-06 14:05:47.787: w/webcore(554):     @ com.android.internal.os.zygoteinit.main(zygoteinit.java:551) 10-06 14:05:47.787: w/webcore(554):     @ dalvik.system.nativestart.main(native method) 10-06 14:05:55.197: e/chromium(554): external/chromium/net/disk_cache/backend_impl.cc:1107: [1006/140555:error:backend_impl.cc(1107)] critical error found -8 

it happens when first open screen supposed load webview. know why happens?

here code of pretty short class:

package com.problemio;  import java.io.inputstream; import java.net.httpurlconnection; import java.net.url; import java.net.urlencoder; import java.util.regex.matcher; import java.util.regex.pattern;  import utils.sendemail; import android.content.activitynotfoundexception; import android.content.intent; import android.content.sharedpreferences; import android.net.uri; import android.os.asynctask; import android.os.bundle; import android.preference.preferencemanager; import android.view.keyevent; import android.view.view; import android.webkit.webchromeclient; import android.webkit.websettings; import android.webkit.webview; import android.webkit.webviewclient; import android.webkit.websettings.pluginstate; import android.widget.button; import android.widget.edittext; import android.widget.radiobutton; import android.widget.radiogroup; import android.widget.textview; import android.widget.toast; import android.widget.radiogroup.oncheckedchangelistener;  import com.flurry.android.flurryagent;  public class videosactivity extends baseactivity {     webview webview = null;      /** called when activity first created. */     @override     public void oncreate(bundle savedinstancestate)      {         super.oncreate(savedinstancestate);         flurryagent.onstartsession(this, "8ca5ltz5m73eg8r35sxg");          webview = new webview(this);         setcontentview(webview);                  webview.getsettings().setappcacheenabled(false);         webview.getsettings().setjavascriptenabled(true);         webview.setinitialscale(1);         webview.getsettings().setpluginstate(pluginstate.on);          websettings websettings = webview.getsettings();          websettings.setloadsimagesautomatically(true);         websettings.setloadwithoverviewmode(true);         websettings.setbuiltinzoomcontrols(true);                 //websettings.setallowcontentaccess(true);         //websettings.setsupportzoom(true);         websettings.setusewideviewport(true);          webview.setwebviewclient(new webviewclient() {             public boolean shouldoverrideurlloading(webview view, string url) {                 view.loadurl(url);                               return false;             }         });                   webview.setwebchromeclient(new webchromeclient(){});          websettings.setjavascriptenabled(true);         websettings.setdomstorageenabled(true);         websettings.setappcacheenabled(true);         websettings.setappcachepath(getapplicationcontext().getfilesdir().getabsolutepath() + "/cache");         websettings.setdatabaseenabled(true);         websettings.setdatabasepath(getapplicationcontext().getfilesdir().getabsolutepath() + "/databases");          webview.loadurl("http://www.youtube.com/user/okudjavavich");          }             @override     public void onpause()     {        super.onpause();        // code        try        {            webview.clearcache(true);             webview.getsettings().setappcacheenabled(false);            webview.clearview();            webview.stoploading();            webview.destroy();            this.finish();        }        catch ( exception e )        {         }     }        @override     public void ondestroy()     {        super.ondestroy();        // code         try        {            webview.getsettings().setbuiltinzoomcontrols(true);         }        catch ( exception e )        {         }         }      @override     public void onstop()     {        super.onstop();        // code         flurryagent.onendsession(this);          //webview.goback();        try        {            webview.clearview();            webview.getsettings().setappcacheenabled(false);            webview.stoploading();            webview.destroy();        }        catch ( exception e )        {            //sendemail ("podcast error" , e.getmessage() + "" );        }         this.finish();     }           @override     protected void onresume()      {         super.onresume();          try         {             webview.onresume();         }         catch ( exception  e )         {          }     }      @override     protected void onstart()      {         super.onstart();      }      @override     protected void onrestart()      {         super.onrestart();     }          @override     public boolean onkeydown(int keycode, keyevent event)      {         if ((keycode == keyevent.keycode_back) && webview.cangoback())          {             webview.goback();             return true;         }         return super.onkeydown(keycode, event);     }         //@override      public void onpagefinished(webview view, string url)      {          view.clearcache(true);      }      public void onbackpressed ( )     {         webview.clearview();     }     } 


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -