Wednesday, March 16, 2011

[android-developers] Android Chrome Plugin is not work in HTC NexusOne

I made a plugin for chrome browser. my plugin is made using
NPAPI(webkit/webcore/plugin).
It works well on Android Virtual Device in Eclipse, but doesn't work
in NexusOne. (Actually, I couldn't test only NexusOne)

My AVD's target is android 2.2. NexusOne is the same as AVD (2.2.1)

Next is my Manifest.
===========================================================
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.sampleplugin"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />

<application android:icon="@drawable/icon" android:label="Plugin
Sample">

<service android:name="com.android.sampleplugin.SamplePlugin">
<intent-filter>
<action android:name="android.webkit.PLUGIN" />
</intent-filter>
<meta-data android:name="type" android:value="native" />
</service>
</application>

<uses-permission android:name="android.webkit.permission.PLUGIN"/>
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8"/>
<uses-feature
android:name="com.google.android.feature.GOOGLE_PLUGIN" />
</manifest>
===============================================================

I could get "TestPlugin_sample.apk". and I setup this file on NexusOne
successfully.
however, when browser encounter <embed> tag with MIME type, I just saw
some blue colored hexagon on browser's screen.

What's the problem? Please, give me directions. Thanks.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment