Ejemplo n.º 1
0
  @Override
  protected void onPause() {
    super.onPause();

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

    if (fbProfileTracker != null && fbProfileTracker.isTracking()) {
      fbProfileTracker.stopTracking();
    }
  }
Ejemplo n.º 2
0
  @Override
  protected void onResume() {
    super.onResume();

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

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