code: public static void registerActivityLifecycleCallbacks(Application application, ActivityLifecycleCallbacksCompat callback) {
          if (PRE_ICS) {
              preIcsRegisterActivityLifecycleCallbacks(callback);
          } else {
              postIcsRegisterActivityLifecycleCallbacks(application, callback);
          }
      }
docs: Registers a callback to be called following the life cycle of the application's {@link android.app.Activity activities}.
  
  @param application The application with which to register the callback.
  @param callback    The callback to register.