stream audio with screen off-Collection of common programming errors

I’m trying to stream an audio file while the screen is oFF. I’m using the MediaPlayer class. I’ve managed to play the audio (mp3) while the screen is ON. Also to play a video while the screen is OFF.These two worked well. However, when I play the audio while the screen is OFF I got the following messages in logcat:

06-16 13:52:22.977: WARN/TimedEventQueue(59): Event 3 was not found in the queue, already cancelled?
06-16 13:52:23.207: WARN/MediaPlayer(11489): mediaplayer went away with unhandled events
06-16 13:52:23.207: WARN/MediaPlayer(11489): mediaplayer went away with unhandled events

I’ve tried to use a wakelock without succeed:

mMediaPlayer.setWakeMode(getBaseContext(), PowerManager.PARTIAL_WAKE_LOCK);

Any other suggestion of what should I try?

really appreciate your help,

/cristobal

Originally posted 2013-11-26 18:03:46.