Chrome devices to solve the problem only display device does not display URL

Solution, add the following code in WebView 

IF (Build.VERSION.SDK_INT> = Build.VERSION_CODES.KITKAT) { 
    WebView.setWebContentsDebuggingEnabled (to true) 
}

 

This method is static, so a direct call WebView class to perform

Published 137 original articles · won praise 29 · views 110 000 +

Guess you like

Origin blog.csdn.net/xiexiaotian11/article/details/104634295