0

I try to show local HTML in webview but it showing error.

Here's the source

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    WebView wv= (WebView) findViewById(R.id.wv);
    wv.getSettings().setPluginsEnabled(true); //error here
    WebSettings webSettings = wv.getSettings();
    webSettings.setJavaScriptEnabled(true);
            wv.loadUrl("file:///android_asset/index.html");
}

I hope someone can help me.

Blue_Alien
  • 2,148
  • 2
  • 25
  • 29

1 Answers1

0

"This method was deprecated in API level 18. Plugins will not be supported in future, and should not be used."

see the question wich brings you the nswer : setPluginEnabled is undefined

Community
  • 1
  • 1
Blue_Alien
  • 2,148
  • 2
  • 25
  • 29