On Mon, Aug 15, 2011 at 5:03 PM, bbaychev <[email protected]> wrote: > Hello, > I have a widget, that behaves awkwardly on 3rd party app updates/ > installs from Android Market. It looks like the onReceive method gets > called and reinstantiates the widget but it does not execute the > onUpdate() method within and the widget is not clickable anymore. Any > ideas what might be wrong with my code and how to fix it? The widget > is not supposed to react to 3rd party app events at all, but some > suggested to me to listen to these intents and do nothing, so I added > them into my code.
onUpdate() is called from onReceive(), if you override it you have to make sure you are calling onUpdate() if you receive ACTION_WIDGET_UPDATE. Why are you listening for all those broadcasts? Besides unless you are trying to workaround an 1.5 bug, there is no need to override onUpdate() for your widget provider. Make your life easier, just handle onUpdate(). (and build from there if you need any special handling). -- 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

