On Fri, Feb 18, 2011 at 1:25 PM, Jake Colman <[email protected]> wrote: > Hmmm. Now we are getting somewhere. 'locationupdater' runs every hour > and updates a file with current location. 'sunrise' runs every 60 > seconds (or whatever) and reads the file for the location. When the app > is first installed to the homescreen, 'sunrise' won't display a time > until 'locationupdater' gets its first fix. > > This seems like the simplest way to reliably get what I need and does > not rely on alot of extra code, alarms or listener updates. Would you > agree? Or am I still missing something fundamental?
The only difference I'd put in there is keep track of your dates. Just because somebody reboots their phone doesn't mean sunrise has changed. If the device has been off for an extended period (e.g., plane), then the app widget probably should have a "please wait" indicator. If the device was only off briefly, though, there's no sense in making them wait. Otherwise, I don't see any obvious problems, other than the complexity of the get-me-a-location service, if LocationPoller either doesn't work or doesn't fit your needs. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.3 Programming Books: http://commonsware.com/books -- 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

