>    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
[email protected]

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to