コード例 #1
0
 @Override
 public IBinder onBind(Intent intent) {
   boolean firstRunNecessary =
       FirstRunFlowSequencer.checkIfFirstRunIsNecessary(getApplicationContext(), false) != null;
   if (firstRunNecessary) return null;
   mConnection = CustomTabsConnection.getInstance(getApplication());
   mConnection.logCall("Service#onBind()", true);
   return super.onBind(intent);
 }
コード例 #2
0
 @Override
 public boolean onUnbind(Intent intent) {
   super.onUnbind(intent);
   if (mConnection != null) mConnection.logCall("Service#onUnbind()", true);
   return false; // No support for onRebind().
 }