[android-developers] Re: Working With Multiple Widget Sizes

>>>>> "MM" == Mark Murphy <mmurphy@commonsware.com> writes:

MM> On Fri, Apr 1, 2011 at 4:43 PM, Jake Colman <colman@ppllc.com> wrote:
>> Hmmmm.  You have asked me a fascinating question.
>>
>> According to this posting in Stack Overflow
>> (http://stackoverflow.com/questions/2570004/how-to-add-multiple-widgets-in-one-app)
>> you need a receiver definition for each widget size.  Unless I'm
>> getting confused in my terminology (which is certainly possible)
>> this means that I _do_ need multiple AppWidgetProviders to support
>> different sized widgets.

MM> Quoting the accepted SO answer:

MM> "This would allow you to have the same AppWidgetProvider class be
MM> used for multiple widgets, with different widget names and
MM> different sizes defined in the <appwidget-provider> XML."

Correct, that is what he says. But if you look at the comments that
follow you will see three that state something like the following:

"Hi, thanks for your answer. But it seems that I cannot share the same
widget provider. (if I do, only first in manifest is shown). So,
basically, multiple widget providers would be the answer for me. Is
anyone working with one widget provider?"

My own tests showed the same behavior.

--
Jake Colman -- Android Tinkerer

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