@Override public void onPause() { super.onPause(); uiHelper.onPause(); AppEventsLogger.deactivateApp(this); // Call the 'deactivateApp' method to log an app event for use in // analytics and advertising // reporting. Do so in the onPause methods of the primary Activities // that an app may be launched into. AppEventsLogger.deactivateApp(this); }
@Override protected void onPause() { super.onPause(); // Save read flag intentAnswer.saveInBackground(); if (newMessageListener != null) { messagesRef.removeEventListener(newMessageListener); } if (chatStatusListener != null) { friendTypingRef.removeEventListener(chatStatusListener); } if (onlineStatusListener != null) { friendOnlineRef.removeEventListener(onlineStatusListener); } if (userTypingRef != null) { userTypingRef.setValue(false); } if (receiver != null) { unregisterReceiver(receiver); } ActionLog.log("paused intent answer activity"); AppEventsLogger.deactivateApp(this); }
@Override protected void onPause() { super.onPause(); AppEventsLogger.deactivateApp(this); }