It doesn't. Music player holds a partial wake lock which keeps the CPU
running when the screen is off. It is important to note: (device
sleep) != (screen off). Holding a partial wake lock has a negative
impact on battery life. Depending on the process holding the wake lock
and the other processes running on the phone, the wake lock can have a
detrimental impact on battery life.

In the case of music player, it is apparent that the users wishes to
trade battery life for a purpose (playing music). Use wake locks
*very* carefully.

Cheers,
Justin
Android Team @ Google

On Jan 29, 12:23 pm, Chad <[email protected]> wrote:
> How is it that the Music player (MediaPlayer) is able to continue
> playing music while the phone is insleepmode?
>
> Justin (Google Employee) wrote:
> > This is not possible. Insleepmodethe G1's primary CPU is turned
> > off. Maintaining theWiFiconnectionrequires use of the primary CPU.
> > ThereforesleepmodeandWiFiare incompatible.
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Jan 28, 6:41 am, Thomas Iverson <[email protected]> wrote:
> > > hi all , i found g1 will automatically turn off thewificonnectioninsleep
> > >mode, maybe it's for battery saving or something what , but , i want to
> > >keepwificonnectionalive
> > > i googled a lot and still don't get any useful solution , any help ? 
> > > thanks
> > > a lot !
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to