Example usage for android.content Context BIND_WAIVE_PRIORITY

List of usage examples for android.content Context BIND_WAIVE_PRIORITY

Introduction

In this page you can find the example usage for android.content Context BIND_WAIVE_PRIORITY.

Prototype

int BIND_WAIVE_PRIORITY

To view the source code for android.content Context BIND_WAIVE_PRIORITY.

Click Source Link

Document

Flag for #bindService : don't impact the scheduling or memory management priority of the target service's hosting process.

Usage

From source file:com.google.fpl.gim.examplegame.MainActivity.java

@Override
protected void onResume() {
    Utils.logDebug(TAG, "onResume");
    super.onResume();
    // Bind to the already running MainService so we can communicate with it.
    Intent intent = new Intent(this, MainService.class);
    intent.setPackage(getPackageName());
    bindService(intent, mConnection, Context.BIND_WAIVE_PRIORITY);
    // Handles screen being asleep during run. Will display end screen if the run is over.
    checkDisplayEndScreen();//  w w w .  j a v a 2s  .c  om
}