Android Widget安装后问题!

时间:2011-07-24 20:42:35

标签: android eclipse android-widget widget manifest

我的小部件已满并准备好工作,安装后我无法在模拟器小部件列表中找到..虽然它在我安装的应用程序中搜索它时...我认为这是清单中的问题,这是清单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="help.i.bored.bad" android:versionCode="1" android:versionName="1.2">
<uses-sdk android:minSdkVersion="8" />

<uses-permission android:name="android.permission.INTERNET"></uses-permission>


<application android:icon="@drawable/icon" android:label="@string/app_name">

    <!-- Broadcast Receiver that will process AppWidget updates -->
    <receiver android:name=".HitsWidget" android:label="@string/app_name">

        <intent-filter>
            <action android:name="help.i.bored.bad.HitsWidge.receiver1" />
            <action android:name="help.i.bored.bad.HitsWidge.receiver2" />
            <action android:name="help.i.bored.bad.HitsWidge.receiver3" />

        </intent-filter>

        <meta-data android:name="android.appwidget.provider"
            android:resource="@xml/hitswidge_provider" />

    </receiver>

    <Service android:name=".MediaService">
        <intent-filter>
            <action android:name="help.i.bored.bad.HitsWidge.receiver2" />
            <action android:name="help.i.bored.bad.HitsWidge.receiver1" />
        </intent-filter>

    </Service>

    <Activity android:name=".Stations" android:label="@string/app_name">
        <intent-filter>
            <action android:name="help.i.bored.bad.HitsWidge.receiver3" />
        </intent-filter>

    </Activity>

</application>

1 个答案:

答案 0 :(得分:0)

您的广播接收器不会侦听android.appwidget.action.APPWIDGET_UPDATE操作。这些都包含在:

AppWidgets