views:

40

answers:

0

Hi, I wonder if it's possible to use the same provider (receiver) for 2 different widget (different sizes for example) I tried on my Manifest :

     <receiver
   android:name=".provider"
   android:label="@string/app_name_small">

      <intent-filter>
          <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
      </intent-filter>
...
      <meta-data
       android:name="android.appwidget.provider"
          android:resource="@xml/appwidget_info_small" />
  </receiver>

  <receiver
   android:name=".provider"
   android:label="@string/app_name">

      <intent-filter>
          <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
      </intent-filter>
...
      <meta-data
       android:name="android.appwidget.provider"
          android:resource="@xml/appwidget_info_multi" />
  </receiver>

But I have just one entry on the widget list :/

What I'm missing ?

Thx

related questions