On Fri, Mar 18, 2011 at 12:24 AM, paulb <[email protected]> wrote:
> 1. Set an alarm using AlarmManager that updates the widget every
> second

Please don't. This is a significant drain of CPU and battery.

> 2. Modify the service to update every second in either a separate
> thread or a handler

Please don't. This is a significant drain of RAM, CPU, and battery.

-- 
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.9
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

Reply via email to