for the battery monitor an alarm manager is sufficient. No need to measure the battery more frequent than, let's say, every five minutes. for the music app use a foreground service. That is less likely to get killed by the OS. Make sure it can easily be killed by the user though.
-- 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

