List of usage examples for android.os Process THREAD_PRIORITY_MORE_FAVORABLE
int THREAD_PRIORITY_MORE_FAVORABLE
To view the source code for android.os Process THREAD_PRIORITY_MORE_FAVORABLE.
Click Source Link
From source file:org.opensilk.video.playback.PlaybackService.java
public void onCreate() { mPlaybackThread = new HandlerThread("SilkPlayback", Process.THREAD_PRIORITY_MORE_FAVORABLE); mPlaybackThread.start();/*from ww w. ja v a 2 s . co m*/ mPlaybackHandler = new Handler(mPlaybackThread.getLooper()); mMainHandler = new Handler(Looper.getMainLooper()); mMediaSession = newMediaSession(); mMediaSession.setCallback(mMediaSessionCallback, mPlaybackHandler); mMediaPlayer = newMediaPlayer(); mMediaPlayer.setEventListener(mMediaPlayerEventListener); mMediaPlayer.setEqualizer(VLCOptions.getEqualizer(mContext)); mCreated = true; updateState(STATE_NONE); }