예제 #1
0
  @Override
  protected void onPause() {
    super.onPause();

    if (fbAccessTokenTracker != null && fbAccessTokenTracker.isTracking()) {
      fbAccessTokenTracker.stopTracking();
    }

    if (fbProfileTracker != null && fbProfileTracker.isTracking()) {
      fbProfileTracker.stopTracking();
    }
  }
예제 #2
0
  @Override
  protected void onResume() {
    super.onResume();

    if (fbAccessTokenTracker != null && !fbAccessTokenTracker.isTracking()) {
      fbAccessTokenTracker.startTracking();
    }

    if (fbProfileTracker != null && !fbProfileTracker.isTracking()) {
      fbProfileTracker.startTracking();
    }
  }