1
有沒有在Android瀏覽器中註冊mimetype專用插件的方法?例如,某些程序添加了「application/specificformat」插件處理程序,這與navigator.plugins一起顯示。我見過的示例代碼中,我試圖做類似的example plugin:在Android瀏覽器中處理與應用程序的MIME類型
<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插件。
我知道你這樣做,在設置MIME類型你自己的webview,我在談論默認的web瀏覽器。 – NoBugs 2012-01-20 17:40:40
你可以舉一個啓用/禁用這種方式的插件的例子嗎? – NoBugs 2012-10-04 03:02:06