Yep, you'll have to define a BroadcastReceiver for each unique size.
Here's an example forecast widget where I offer two different sizes:

http://code.google.com/p/android-sky/source/browse/#svn/trunk/Sky

j


On Mon, May 18, 2009 at 9:46 AM, guruk <[email protected]> wrote:
>
> OK, thanks, but how does this looks in practice
>
> let say i have a /xml/widget_word.xml
>
> ---
> <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/
> android"
>    android:minWidth="74dip"
>    android:minHeight="72dip"
>    android:updatePeriodMillis="21600000"
>    android:initialLayout="@layout/widget_word"
>    android:configure="com.chris.setwidgetuser"
>    />
> ----
>
> whereto define this additional sizes?
> because that /xml/widget_word.xml is defined in my manifest.xml
>
>        <!-- Broadcast Receiver that will process AppWidget updates -->
>                <receiver android:name=".WordWidget" android:label="My App">
>                        <intent-filter>
>                                <action 
> android:name="android.appwidget.action.APPWIDGET_UPDATE" /
>>
>                        </intent-filter>
>                        <meta-data android:name="android.appwidget.provider"
>                                android:resource="@xml/widget_word" />
>                </receiver>
>
> so do I have to make 2 Broadcast Receivers ..??
> Or where to add this new defined size..?
>
> if you could give me a small example.. please, would be great
>
> thanks
> chris
>
> >
>



-- 
Jeff Sharkey
[email protected]

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

Reply via email to