[android-developers] Re: Screen rotation with App Widgets loses onClick connection

2012-05-11 Thread Opack
Hi ! I seem to have the same problem but the solution I've found everywhere on the web and in this thread does not work for me :( I posted my onUpdate method below, in which I perform a full initialisation of a new RemoteViews object. Then I pass it to the AppWidgetManager. This kind of

Re: [android-developers] Re: Screen rotation with App Widgets loses onClick connection

2011-01-14 Thread Kostya Vasilyev
Each and every update you push to the wigdget with RemoteViews has to have complete widget state, including all images, text, and pending intents. There is no onUpdate on configuration changes. The home screen recreates your widget, then takes the most recent RemoteViews and applies it to the

[android-developers] Re: Screen rotation with App Widgets loses onClick connection

2011-01-14 Thread John Gaby
There is no onUpdate on configuration changes. The home screen recreates your widget, then takes the most recent RemoteViews and applies it to the widget. I figured that it was recreating the Widget on rotation. The problem is, I don't seem to be getting any messages to that effect, and have

Re: [android-developers] Re: Screen rotation with App Widgets loses onClick connection

2011-01-14 Thread Kostya Vasilyev
[see below] 2011/1/14 John Gaby jg...@gabysoft.com There is no onUpdate on configuration changes. The home screen recreates your widget, then takes the most recent RemoteViews and applies it to the widget. I figured that it was recreating the Widget on rotation. The problem is, I

[android-developers] Re: Screen rotation with App Widgets loses onClick connection

2011-01-14 Thread John Gaby
Got it, thanks! On Jan 14, 8:27 am, Kostya Vasilyev kmans...@gmail.com wrote: [see below] 2011/1/14 John Gaby jg...@gabysoft.com There is no onUpdate on configuration changes. The home screen recreates your widget, then takes the most recent RemoteViews and applies it to the widget.

[android-developers] Re: Screen rotation with App Widgets loses onClick connection

2011-01-13 Thread Anbu
It is because, the widget becomes unresponsive when the display mode is changed from portrait to landscape. I had the same issue and I what I had done is for every RemoteView update I had send all the pendingintent to make it work On Jan 14, 4:26 pm, John Gaby jg...@gabysoft.com wrote: I have an