Android: can't get javascript to work on WebView even with setJavaScriptEnabled(true)

后端 未结 3 890
闹比i
闹比i 2020-12-19 08:13

I\'m a complete noob to Android and this is just a simple test. Based it on this tutorial.

Here goes the HelloWebApp.java

package com.company.somethi         


        
3条回答
  •  天涯浪人
    2020-12-19 08:18

    just add

    import android.webkit.WebChromeClient;
    import android.webkit.WebView;
    

    in YourApp.java

提交回复
热议问题