I am currently working on an application which requires a service running in the background to play music when the phone is in sleep mode. I would like to know what are the actions that can be performed to trigger play music action while the device is in sleep mode.
Asked
Active
Viewed 282 times
1 Answers
0
Basically when your phone is in sleep mode it shuts down the CPU, when it is in sleep mode only thing which works is GSM or CDMA radio that is your incoming calls, SMSs, IP packets and AlarmManager...
After this answer you would think that, It even stop the services also if the phone is in sleep mode.
Then my Answer is, Yes. it does, since the CPU is powered down, all processes freeze in place. For more information you can visit this link.
Thanks to @CommonsWare for great answer.

Community
- 1
- 1

InnocentKiller
- 5,234
- 7
- 36
- 84
-
Thanks for the reply, but I would like to know one more thing. Does the device go into sleep mode when a headset is plugged in? – miteshpithadiya Mar 22 '14 at 10:13
-
@mvp, No it does not go to sleep mode, even if you press lock key it does not directly sleep mode. – InnocentKiller Mar 22 '14 at 10:29