我正在開發適用於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