Chister Nordvik wrote: > 2. Update the widget every 5 seconds to change the currently displayed > article using AlarmManager (AlarmManager.RTC)
Please consider making that configurable and able to be disabled, as an improvement over the brain-dead stock news-and-weather widget. > I guess the device is considered "awake" even if screen is off? That depends on who is holding any partial WakeLocks. Generally, the CPU shuts off shortly after the screen turns off. > I then checked the standard news widget and the other news widgets > most popular on the Android Market and I see that they have services > running all the time. Frankly, I don't know why the Genie... service sticks around for the stock News and Weather. It does not appear to be affecting the thoroughly irritating and non-configurable change-the-headline-every-five-seconds feature, as that persists even when I shut down the service via the Settings application. > Maybe because they want to handle the broadcast > event when the screen is turned off? Conceivably. That application is not open source at this time. > So is this really the best solution to have a service running in the > background? Probably not. If you are using a WakeLock, double-check to confirm you are releasing it properly. Then, use this command to see if anyone else is screwing up *their* WakeLocks: adb shell dumpsys power and perhaps: adb shell dumpsys batteryinfo to see who is messing up. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.5 Available! -- 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

