Example usage for android.os Process THREAD_PRIORITY_MORE_FAVORABLE

List of usage examples for android.os Process THREAD_PRIORITY_MORE_FAVORABLE

Introduction

In this page you can find the example usage for android.os Process THREAD_PRIORITY_MORE_FAVORABLE.

Prototype

int THREAD_PRIORITY_MORE_FAVORABLE

To view the source code for android.os Process THREAD_PRIORITY_MORE_FAVORABLE.

Click Source Link

Document

Minimum increment to make a priority more favorable.

Usage

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);

}