0

ウィジェットを作成しようとしていますが、アプリをインストールしてもウィジェットのリストに表示されません。これは、マニフェスト ファイルに問題があることを意味すると思います。1.5 ~ 2.2 でいくつかの異なる例を試しましたが、再ハニカム ウィジェットとポスト ハニカム ウィジェットの動作に違いはありますか?

とにかく、これは私のマニフェストのウィジェットセクションです

    <!-- Broadcast Receiver that will process AppWidget updates -->
    <receiver android:name=".ButtonWidget" android:label="@string/app_name">
    <intent-filter>
        <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />

        <!-- Broadcast Receiver that will also process our self created action -->
        <action android:name="com.dotpubs.counterpro.ButtonWidget.ACTION_WIDGET_RECEIVER"/>
    </intent-filter>
    <meta-data android:name="android.appwidget.provider" android:resource="@xml/button_widget_provider" />
    </receiver>

    <!-- this activity will be called, when we fire our self created ACTION_WIDGET_CONFIGURE -->
    <activity android:name=".ClickOneActivity">
        <intent-filter>
            <action android:name="com.dotpubs.counterpro.ACTION_WIDGET_CONFIGURE"/>
        </intent-filter>
    </activity>

    <intent-filter >
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
4

1 に答える 1

0

Android 4.0.3 を実行している可能性はありますか?

そのバージョンには既知の問題があります。問題 24208を参照してください

于 2012-06-24T22:24:51.100 に答える