Letting the user select a frequency can be done by not specifying an updatePeriodMillis for the widget, but instead registering a broadcast receiver with the AlarmManager that pushes updates through the AppWidgetManager. It's not possible to change the size of a widget from that defined in its xml info file. The only option here is to offer the user multiple widgets of differing sizes.
Tom. 2009/5/16 Michael Elsdörfer <[email protected]> > > The developer blog suggests that one might ask the user for a custom > widget update interval: > > "Consider updating as infrequently as possible, or letting your users > pick a custom update frequency. " > > http://android-developers.blogspot.com/2009/04/introducing-home-screen-widgets-and.html > > It's not quite clear to me how one would do so. The > android:updatePeriodMillis attribute is statically defined the the xml > resource, and can't be changed, no? > > And related, what about minHeight and minWidth? Is it possible to let > the use choose a size during configuration? From what I understand, > the configuration dialog is only called once the widget views have > already been requested once, so I am guessing not? > > Michael > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

