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

2011-04-02 Thread Jake Colman
KV == Kostya Vasilyev kmans...@gmail.com writes: KV 2011/4/2 Jake Colman col...@ppllc.com Kostya, Thanks for the detailed reply. For those events that are shared by the two receivers, what happens if only one sized widget is actually on the home screen? The

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

2011-04-01 Thread Jake Colman
KV == Kostya Vasilyev kmans...@gmail.com writes: KV As far as Android is concerned, IntentService knows nothing about KV home screen widgets. KV Since you know which widget receivers' onUpdate was called, pass KV this information to the service (e.g. by setting an intent KV

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

2011-04-01 Thread Mark Murphy
On Fri, Apr 1, 2011 at 3:43 PM, Jake Colman col...@ppllc.com wrote: KV == Kostya Vasilyev kmans...@gmail.com writes:   KV As far as Android is concerned, IntentService knows nothing about   KV home screen widgets.   KV Since you know which widget receivers' onUpdate was called, pass   KV

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

2011-04-01 Thread Jake Colman
MM == Mark Murphy mmur...@commonsware.com writes: MM On Fri, Apr 1, 2011 at 3:43 PM, Jake Colman col...@ppllc.com wrote: KV == Kostya Vasilyev kmans...@gmail.com writes:   KV As far as Android is concerned, IntentService knows nothing about   KV home screen widgets.

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

2011-04-01 Thread Kostya Vasilyev
Mark -- You left out what happens with 1338 receivers... :) Jake -- I implemented my two widget sizes as two receivers, the reason being that meta-data that references the widget_info_widget_size_variation.xml goes under receiver. The metadata is important because it specifies minimum widget

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

2011-04-01 Thread Mark Murphy
On Fri, Apr 1, 2011 at 4:43 PM, Jake Colman col...@ppllc.com wrote: H.  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

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

2011-04-01 Thread Jake Colman
MM == Mark Murphy mmur...@commonsware.com writes: MM On Fri, Apr 1, 2011 at 4:43 PM, Jake Colman col...@ppllc.com wrote: H.  You have asked me a fascinating question. According to this posting in Stack Overflow

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

2011-04-01 Thread Mark Murphy
On Fri, Apr 1, 2011 at 4:55 PM, Jake Colman col...@ppllc.com wrote: 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.

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

2011-04-01 Thread Jake Colman
KV == Kostya Vasilyev kmans...@gmail.com writes: KV Mark -- KV You left out what happens with 1338 receivers... :) KV Jake -- KV I implemented my two widget sizes as two receivers, the reason KV being that meta-data that references the KV widget_info_widget_size_variation.xml

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

2011-04-01 Thread Kostya Vasilyev
Perhaps it worked at some point, then the system service that manages a package's list of receivers was changed to ignore duplicates? 2011/4/2 Mark Murphy mmur...@commonsware.com On Fri, Apr 1, 2011 at 4:55 PM, Jake Colman col...@ppllc.com wrote: Correct, that is what he says. But if you look

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

2011-04-01 Thread Mark Murphy
On Fri, Apr 1, 2011 at 5:17 PM, Kostya Vasilyev kmans...@gmail.com wrote: Perhaps it worked at some point, then the system service that manages a package's list of receivers was changed to ignore duplicates? Possibly. It'd be cool if we had receiver-alias to go along with activity-alias, as

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

2011-04-01 Thread Kostya Vasilyev
2011/4/2 Jake Colman col...@ppllc.com Kostya, Thanks for the detailed reply. For those events that are shared by the two receivers, what happens if only one sized widget is actually on the home screen? The system sends the event and it is still processed by unused broadcast receiver even

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

2011-03-30 Thread Jake Colman
KV == Kostya Vasilyev kmans...@gmail.com writes: KV As far as Android is concerned, IntentService knows nothing about KV home screen widgets. KV Since you know which widget receivers' onUpdate was called, pass KV this information to the service (e.g. by setting an intent KV