When Android uses Webview, sometimes java. lang. Throwable: EventHub. removeMessages (int what = 107) warning

Source: Internet
Author: User

I searched the internet for a long time and failed to find the exact cause of the warning. Tests show that this warning is not reported if the url is not loaded. Suddenly I had an idea: is it related to html code on the page?

However, the page is a static html page that contains only a few lines of the most basic code! Later, I tested loading other pages, and the problem was fixed for a long time. It can be seen that the cause of the exception has nothing to do with the html page. It will take some time to look back.

Let's take a closer look. Let's put the problem here first .....

 

Public View onCreateView (android. view. layoutInflater inflater, android. view. viewGroup container, android. OS. bundle savedInstanceState) {View v = inflater. inflate (R. layout. inject_webview, null); webview = (WebView) v. findViewById (R. id. webView1); webview. loadUrl ("http: // 10.0.111.196: 1946/test"); v. findViewById (R. id. button1 ). setOnClickListener (this); // initialWebviewSetting (); return v ;}

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.