Skip to content

Instantly share code, notes, and snippets.

@rajuashok
Created December 21, 2013 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajuashok/8063748 to your computer and use it in GitHub Desktop.
Save rajuashok/8063748 to your computer and use it in GitHub Desktop.
Setting MediaPlayer WakeMode
mMediaPlayer = new MediaPlayer();
// ... other initialization here ...
mMediaPlayer.setWakeMode(getApplicationContext(), PowerManager.PARTIAL_WAKE_LOCK);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment