@Override protected void onPause() { super.onPause(); if (fbAccessTokenTracker != null && fbAccessTokenTracker.isTracking()) { fbAccessTokenTracker.stopTracking(); } if (fbProfileTracker != null && fbProfileTracker.isTracking()) { fbProfileTracker.stopTracking(); } }
@Override protected void onResume() { super.onResume(); if (fbAccessTokenTracker != null && !fbAccessTokenTracker.isTracking()) { fbAccessTokenTracker.startTracking(); } if (fbProfileTracker != null && !fbProfileTracker.isTracking()) { fbProfileTracker.startTracking(); } }