XPCOM support in Android webkit browser?

Does the Android WebKit supports the XPCOM framework or NPRuntime API`s as like Firefox? How to implement JavaScript in the Android WebKit plug-in?

Update: I am writing a media player plug-in for the Android WebKit browser and my plug-in needs to get the command from the web page through JavaScript (some actions like play/pause/stop/resize are issued as JavaScript commands from the browser). My plug-in is written in native C code. Are there any examples or sample plug-in available for JavaScript communication?

Asked by: Stella748 | Posted: 25-01-2022

Answer 1

WebKit doesn't support XPCOM, as WebKit is entirely separate from the Mozilla stack.

When you say you want to "implement Javascript", what do you mean?
The built-in Android browser already supports the execution of Javascript.

Answered by: Lenny465 | Posted: 26-02-2022

Answer 2

The android browser supported NPAPI all the time, the mechanism changed in 2.1 though, now it looks for APKs with the intent filter "android.webkit.PLUGIN", so a plugin needs to be packaged separately.

Previously setting the plugin path on the WebView and compiling the plugin using the NDK did the trick.

Hope this helps, you will find a lot of info when googling for NPAPI and WebView or NPAPI and android.

Answered by: Ada443 | Posted: 26-02-2022

Answer 3

Android's WebKit doesn't support XPCOM, nor does it support NPAPI and npruntime. Not sure how you're planning to write a browser plugin, but it's not going to be possible with the Android SDK.

Answered by: Brianna203 | Posted: 26-02-2022

Similar questions

OMA DRM v1 & v2 support on Android

Are OMA DRM v1 and v2 supported on Android? If no, is it planned? is there any third party library that implements OMA DRAM v1 & v2?

OMA DRM v1 & v2 support on Android

Are OMA DRM v1 and v2 supported on Android? If no, is it planned? is there any third party library that implements OMA DRAM v1 & v2?

SDL support on Android Based and Windows Phone

Where can i find information about Windows Mobile OS or Android.I need to know, if they support SDL or not. Does all android phone support SDL?

android support unicode?

will android OS support unicode ?

Multi theme support in android app

Did anyone implemented multi theme support for android app? Are there any common practices for this? Thanks for any advice. UPD: The main problem for now is that android's theme engine doesn't support selectors like in CSS. For example if I have two views with "background" attribute there's no way to make theme engine distinguish those ones and set different backgrounds. I can specify diffe...

how to layout support for various screen in android?

i am developing gallery view using gridview,in small screen my layout design fixed very well,but large screen did not my design,In large screen have some spaces bellow "load more picture" button refer fig2,how can i solve this problem,my Manifest file added this lines for support va...

SVG support on Android

Does Android support SVG? any example?

app2sd - How to enable app being moved to sdcard (and support android < 2.2 still)?

How can i enable my app to be moved to the sdcard? -edited the title in order to make question more relevant to the answers given.

Android Flash support

Can Android applications can use flash content in them?

Android 2.3 Hebrew Support in Webview

I have testing an app I ported to 2.3 on the Android 2.3 emulator, the app includes Hebrew strings displayed in a WebView required solving three problems: Telling webview to use hebrew fonts (see my post with solution her Android 2.3 Hebrew fonts in Webview) Telling webview to display the string right to l...

Does Android support JSR 82?

I want to connect Android phone to other devices using JSR 82.

Still can't find your answer? Check out these communities...

Android Google Support | Android Community | Android Community (Facebook) | Dev.io Android