我正在开发适用于Android的浏览器。如何在Android WebView的首选项中启用/禁用Flash?
是否可以创建一个Checkbox Preference
来启用和禁用Preferences
中的Flash插件(webview.setPluginsEnabled
)?
<CheckBoxPreference
android:title="Enable/Disable Flash"
android:key="chkbox_flash"
Here I need the code to set WebView.getSettings().setPluginsEnabled(boolean)
to true or to false />
在什么设置中? – 2012-08-10 11:05:32
永远不要忘记指定你的环境。 – 2012-08-10 11:54:52