List of usage examples for android.content Context BIND_WAIVE_PRIORITY
int BIND_WAIVE_PRIORITY
To view the source code for android.content Context BIND_WAIVE_PRIORITY.
Click Source Link
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 }