[android-developers] Re: Widget Unresponsive after Opening/Closing
I had the same problem. Jeff's solution worked for me. Thanks! On Jun 17, 1:27 am, Jeff Sharkey wrote: > Are you sending a full RemoteViews update each time? (The AppWidget > framework only keeps the last RemoteViews sent, and reapplies it when > needed, such as after a screen rotation.) > > For example, if you only set the PendingIntent once, and have a second > RemoteViews update that doesn't include it, the PendingIntent will be > lost when the screen is rotated. > > j > > On Tue, Jun 16, 2009 at 10:16 AM, d2dadd wrote: > > > I have a widget button that responds to user's clicks. My design is to > > assign the click event handler to calling a service in OnUpdate. It > > works fine when first created, but it stops responding after user has > > opened and closed the keyboard. How to fix this? > > Many thanks. > > -- > Jeff Sharkey > jshar...@android.com --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Widget Unresponsive after Opening/Closing
Are you sending a full RemoteViews update each time? (The AppWidget framework only keeps the last RemoteViews sent, and reapplies it when needed, such as after a screen rotation.) For example, if you only set the PendingIntent once, and have a second RemoteViews update that doesn't include it, the PendingIntent will be lost when the screen is rotated. j On Tue, Jun 16, 2009 at 10:16 AM, d2dadd wrote: > > I have a widget button that responds to user's clicks. My design is to > assign the click event handler to calling a service in OnUpdate. It > works fine when first created, but it stops responding after user has > opened and closed the keyboard. How to fix this? > Many thanks. > > > > -- Jeff Sharkey jshar...@android.com --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---