0

I am trying to make a widget, but when I install my app it doesn't appear in the list of Widgets, I assume that means that there is something wrong with my manifest file. Have tried several different examples all for 1.5-2.2, is there something different between the way re-honeycomb and post-honeycomb Widgets work?

Anyways this is the widget section of my manifest

    <!-- 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" />
Squonk
  • 48,735
  • 19
  • 103
  • 135
jcw
  • 5,132
  • 7
  • 45
  • 54
  • Not all of the code is showing, I don't know why, when I try to edit it is shows, can anyone help with that? – jcw Jun 24 '12 at 19:27
  • Pay attention to LogCat when you run the app and maybe there is a log message that will tell you what went wrong. – Mike Jun 24 '12 at 22:30

1 Answers1

0

Any chance you are running Android 4.0.3?

There is a known problem in that version. See issue 24208

Christian Garbin
  • 2,512
  • 1
  • 23
  • 31