I have a MediaPlayer running in a Service that's playing audio from a URL (streaming). As of now it appears to work well, and even continues playing when I put the phone in standby.
I currently do not acquire a wakelock. My question is:
- Is it actually necessary to acquire a wakelock in my situation?
- If it is necessary, what type of wakelock should I acquire?
And yes, this is a legitimate use-case for wakelock, because my users explicitly want the audio to continue playing.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…