Recently in the development of the program, found that there is an application of the WebView load HTML5 page is always loaded, loading is slow or simply cannot be loaded out,
But in other applications there is no problem, can quickly load, find a circle of problems, the head is too big to find. Daniel, who listens to the browser today, may be
JS caused, try to add mwebview.pausetimers (), Onresume () in the OnPause to add mwebview.resumetimers ().
Miraculously solved, is currently studying why ....
@Override protected void OnPause () { super.onpause (); Mwebview.pausetimers (); if (isfinishing ()) { Mwebview.loadurl ("About:blank"); Setcontentview (New Framelayout (this)); } } @Override protected void Onresume () { super.onresume (); Mwebview.resumetimers (); }
Android app Bug solution that caused WebView to be loaded because of adding JS