On Mon, Sep 6, 2010 at 1:15 PM, Rich <[email protected]> wrote: > No matter what I put in updatePeriodMillis, the shortest refresh > time I can get is 30 minutes (I thought this was a 1.6 only bug but > apparently not since I'm running 2.1)
It is not a bug. > I don't want the widget to refresh when > the screen is off and I want it to refresh immediately upon waking up > the screen. My search for information says to set updatePeriodMillis > to 0 and use the AlarmManager instead, but I can't find any complete > code examples on just how to do this. Here is a sample project that uses AlarmManager: http://github.com/commonsguy/cw-advandroid/tree/master/SystemServices/Alarm/ To update the app widget from outside your AppWidgetProvider, just call AppWidgetManager.getInstance(), and everything else is pretty much the same (create RemoteViews, etc.). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- 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

