【发布时间】:2012-01-12 21:06:18
【问题描述】:
有没有办法在 Android 浏览器中注册特定于 mimetype 的插件?例如,一些程序添加了“应用程序/特定格式”插件处理程序,可以在 navigator.plugins 中看到。我看过示例代码,并尝试过类似example plugin:
<service android:name=".SamplePlugin">
<intent-filter>
<action android:name="android.webkit.PLUGIN" />
<data android:mimeType="application/applicationmimetype" android:scheme="http" />
</intent-filter>
<meta-data android:name="type" android:value="native" />
</service>
但它似乎没有在浏览器中注册。当我在 Android 上查看 navigator.plugins 时,它要么是空的,要么只显示 Google Gears 插件。
【问题讨论】:
标签: android mime-types browser-plugin