On Oct 27, 10:38 pm, Brian <[EMAIL PROTECTED]> wrote: > I am very confused..if the CPU shuts off when the device goes to sleep > does that mean that any thread running will also be shut down?
Well, it will stop executing. > I am confused..how can one have a process run in the background if the > CPU is off most of the time? You don't, as much as possible. Keeping the CPU running while it's not being used will have a big impact on battery life. You should use the alarm manager to have the system wake you up when needed. You can hold a partial wake lock while needed to ensure that the cpu remains running during that time, but just holding one indefinitely is evil. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

