I have an app which supports versions starting from api 7. Till now, I have been using below code for webview plugin settings:if (Build.VERSION.SDK_INT < 8) {
webView.getSettings().setPluginsEnabled(true);
} else {
webView.getSettings().setPluginState(WebSettings.PluginState.ON);
}
But now I have changed my targetSdkVersion to 19 and the line webView.getSettings().setPluginsEnabled(true);
gives compilation error when compiled using Android build target 4.4.2.
How to handle the plugins settings across all the versions from api 7 to api 19 ? Should I remove the code or do something else ?
I have already referred following links:
setPluginsEnabled not exist for WebView
setPluginState and setPluginsEnabled
Asked
Active
Viewed 5,489 times
0

Community
- 1
- 1

r.bhardwaj
- 1,603
- 6
- 28
- 54