@Override
  protected void onStop() {
    super.onStop();

    mGoogleApiClient.disconnect();
    unregisterReceiver(mConnectionReceiver);
  }
Beispiel #2
0
 @Override
 protected void onStop() {
   super.onStop();
   if (mGoogleApiClient.isConnected()) {
     mGoogleApiClient.disconnect();
   }
 }
  @Override
  /**
   * When this activity stops, this method fires the javascript 'blur' and 'stop' events. Blur
   * events will only fire if the activity is not a tab activity.
   */
  protected void onStop() {
    inForeground = false;
    super.onStop();

    Log.d(TAG, "Activity " + this + " onStop", Log.DEBUG_MODE);

    if (getTiApp().isRestartPending()) {
      if (!isFinishing()) {
        finish();
      }
      return;
    }

    if (activityProxy != null) {
      activityProxy.fireSyncEvent(TiC.EVENT_STOP, null);
    }

    synchronized (lifecycleListeners.synchronizedList()) {
      for (OnLifecycleEvent listener : lifecycleListeners.nonNull()) {
        try {
          TiLifecycle.fireLifecycleEvent(this, listener, TiLifecycle.LIFECYCLE_ON_STOP);

        } catch (Throwable t) {
          Log.e(TAG, "Error dispatching lifecycle event: " + t.getMessage(), t);
        }
      }
    }
    KrollRuntime.suggestGC();
  }
  @Override
  protected void onStop() {
    spiceManager.shouldStop();
    super.onStop();

    EventBus.getDefault().unregister(this);
  }
Beispiel #5
0
  @Override
  protected void onStop() {
    // TODO Auto-generated method stub
    ServiceManager.isStart = false;

    super.onStop();
  }
 @Override
 protected void onStop() {
   if (sensorHandling != null) {
     sensorHandling.unregister();
     Log.v(getClass().getName(), "ShakeDetector un-registered on stop");
   }
   super.onStop();
 }
 @Override
 protected void onStop() {
   if (_locationClient.isConnected()) {
     stopPeriodicUpdates();
   }
   _locationClient.disconnect();
   super.onStop();
 }
 /*
  * Called when the Activity is no longer visible.
  */
 @Override
 protected void onStop() {
   // Disconnecting the client invalidates it.
   if (mGoogleApiClient != null) {
     mGoogleApiClient.disconnect();
   }
   super.onStop();
 }
 @Override
 protected void onStop() {
   // TODO Auto-generated method stub
   super.onStop();
   FlurryAgent.onEndSession(MainActivity.this);
   ms_bIsInBackground = true;
   if (Constants.isDebug) Log.e("MainActivity", "MainActivity-onStop()");
 }
Beispiel #10
0
  @Override
  protected void onStop() {
    super.onStop();

    if (Log.GANALYTICS) {
      EasyTracker.getInstance(getApplicationContext()).activityStop(this);
    }
  }
Beispiel #11
0
 @Override
 protected void onStop() {
   super.onStop();
   //        if(serviceConnection != null){
   //            MORTClientNetworkService.unbind(getApplicationContext(), serviceConnection);
   //        }
   sDeviceInfoServer.stopCameraServer();
   sDeviceInfoServer.stopSensorServer();
 }
  protected void onStop() {
    Log.d(TAG, "onStop!");
    super.onStop();
    /* NOT DISCONNECT! WE will come back after result and OnActivityResult does not executes previously onStart!

    	Log.d(TAG, "onStop mGoogleApiClient isConnected. Disconnecting...!");
    	mGoogleApiClient.disconnect();
    }*/
  }
  @Override
  protected void onStop() {
    super.onStop();

    SharedPreferences settings = getSharedPreferences(room.getRoomNumber(), 0);
    SharedPreferences.Editor editor = settings.edit();
    editor.putBoolean("favorite", favorite);
    editor.commit();
  }
 @Override
 protected void onStop() {
   super.onStop();
   position = mPager.getCurrentItem();
   SharedPreferences pref = getSharedPreferences("reset", 0);
   SharedPreferences.Editor edit = pref.edit();
   edit.putInt("position", position);
   edit.commit();
 }
 @Override
 protected void onStop() {
   super.onStop();
   if (locationListener != null) {
     LocationManager locationManager =
         (LocationManager) getSystemService(Context.LOCATION_SERVICE);
     locationManager.removeUpdates(locationListener);
     locationListener = null;
   }
 }
  @Override
  protected void onStop() {
    // Disconnecting the client invalidates it.
    mGoogleApiClient.disconnect();
    super.onStop();

    if (mQueue != null) {
      mQueue.cancelAll(REQUEST_TAG);
    }
  }
Beispiel #17
0
 @Override
 protected void onStop() {
   super.onStop();
   try {
     // make sure you close the socket upon exiting
     connected = false;
     sck.close();
   } catch (IOException e) {
     e.printStackTrace();
   }
 }
Beispiel #18
0
 @Override
 protected void onStop() {
   // TODO Auto-generated method stub
   super.onStop();
   /*		if (!AppUtils.isAppOnForeground()) {
             //app 进入后台
   	//全局变量isActive = false 记录当前已经进入后台
   	GezitechApplication.isActive = false;
   	//GezitechApplication.runtime = System.currentTimeMillis();
   }*/
 }
  @Override
  public void onStop() {
    try {
      Log.d("&10", "onStop");
      showMessageOnUI("onStop(): Stopping positioning.");
      indoorAtlas.stopPositioning();
    } catch (Exception e) {
      e.printStackTrace();
    }

    super.onStop();
  }
  /*
   * Called when the Activity is no longer visible at all.
   * Stop updates and disconnect.
   */
  @Override
  public void onStop() {

    // If the client is connected
    if (mLocationClient.isConnected()) {
      stopPeriodicUpdates();
    }

    // After disconnect() is called, the client is considered "dead".
    mLocationClient.disconnect();

    super.onStop();
  }
Beispiel #21
0
  @Override
  protected void onStop() {
    super.onStop();
    Log.v(ac_tag, "onStop");

    if (audioRecord != null) {
      if (audioRecord.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) {
        audioRecord.stop();
      }
      audioRecord.release();
      audioRecord = null;
    }
  }
  // Disconnect from the data layer when the Activity stops
  @Override
  protected void onStop() {

    if (null != googleClient && googleClient.isConnected()) {
      googleClient.disconnect();
    }
    super.onStop();
    // ATTENTION: This was auto-generated to implement the App Indexing API.
    // See https://g.co/AppIndexing/AndroidStudio for more information.
    Action viewAction =
        Action.newAction(
            Action.TYPE_VIEW,
            "Maps Page",
            Uri.parse("http://host/path"),
            Uri.parse("android-app://com.example.darragh.firstwearapplication/http/host/path"));
    AppIndex.AppIndexApi.end(googleClient, viewAction);
  }
 @Override
 protected void onStop() {
   GKIMLog.lf(this, 0, TAG + "=>onStop.");
   if (mGuiHeader != null) {
     mGuiHeader.setOnClickListener(null);
   }
   if (mGuiFooter != null && !mTabletVersion) {
     mGuiFooter.setOnClickListener(null);
   }
   if (mGuiMenu != null) {
     hideGUIListMenu();
     mGuiMenu.setOnClickListener(null);
   }
   // FlurryAgent.onEndSession(this);
   Tracking.endSeesion(this);
   super.onStop();
 }
 @Override
 protected void onStop() {
   lifecycleSubject.onNext(LifecycleEvent.STOP);
   super.onStop();
 }
Beispiel #25
0
 protected void onStop() {
   super.onStop();
 }
 @Override
 protected void onStop() {
   Collect.getInstance().getActivityLogger().logOnStop(this);
   super.onStop();
 }
Beispiel #27
0
 @Override
 protected void onStop() {
   super.onStop();
   locationClient.disconnect();
 }
Beispiel #28
0
 @Override
 public void onStop() {
   dbHandler.close();
   super.onStop();
 }
 @Override
 protected void onStop() {
   super.onStop();
 }
 @Override
 public void onStop() {
   if (mProxyActivity == this) {
     super.onStop();
   }
 }