> When it is initially created, the onUpdate() method of my > AppWidgetProvider calls views.setOnClickPendingIntent(buttonID, > pendingIntent) to register for my button events, but when the > orientation changes, new buttons are created and I don't have an > opportunity to re-register the "onClick" listeners. What is the proper > way to do this?
The system keeps a cache of the last RemoteViews update you sent, and reapplies it to the newly inflated landscape layout automatically. :) -- 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 -~----------~----~----~----~------~----~------~--~---