@@ -0,0 +1,2108 @@
+/*%0A * %C2%A0%C2%A0 %C2%A0Copyright 2015 IBM Corp.%0A * %C2%A0%C2%A0 %C2%A0Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * %C2%A0%C2%A0 %C2%A0you may not use this file except in compliance with the License.%0A * %C2%A0%C2%A0 %C2%A0You may obtain a copy of the License at%0A * %C2%A0%C2%A0 %C2%A0http://www.apache.org/licenses/LICENSE-2.0%0A * %C2%A0%C2%A0 %C2%A0Unless required by applicable law or agreed to in writing, software%0A * %C2%A0%C2%A0 %C2%A0distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * %C2%A0%C2%A0 %C2%A0WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * %C2%A0%C2%A0 %C2%A0See the License for the specific language governing permissions and%0A * %C2%A0%C2%A0 %C2%A0limitations under the License.%0A */%0A%0Apackage com.ibm.mobilefirstplatform.clientsdk.android.analytics.api.internal;%0A%0Aimport android.app.Activity;%0Aimport android.app.Application;%0Aimport android.os.Bundle;%0A%0A/**%0A * Implements the android life cycle callbacks to be registered with the application.%0A *%0A * Implemented as a singleton so that application callbacks can only be registered once.%0A */%0Apublic class MFPAnalyticsActivityLifecycleListener implements Application.ActivityLifecycleCallbacks%7B%0A    private static MFPAnalyticsActivityLifecycleListener instance;%0A%0A    public static void init(Application app) %7B%0A        if (instance == null) %7B%0A            instance = new MFPAnalyticsActivityLifecycleListener();%0A            app.registerActivityLifecycleCallbacks(instance);%0A        %7D%0A    %7D%0A%0A    @Override%0A    public void onActivityResumed(Activity activity) %7B%0A        //WLLifecycleHelper.getInstance().onPause();%0A    %7D%0A%0A    @Override%0A    public void onActivityPaused(Activity activity) %7B%0A        //WLLifecycleHelper.getInstance().onResume();%0A    %7D%0A%0A    // we do not currently instrument any other lifecycle callbacks%0A    @Override%0A    public void onActivityCreated(Activity activity, Bundle savedInstanceState) %7B%7D%0A%0A    @Override%0A    public void onActivityStarted(Activity activity) %7B%7D%0A%0A    @Override%0A    public void onActivityStopped(Activity activity) %7B%7D%0A%0A    @Override%0A    public void onActivitySaveInstanceState(Activity activity, Bundle outState) %7B%7D%0A%0A    @Override%0A    public void onActivityDestroyed(Activity activity) %7B%7D%0A%7D%0A

Add activity lifecycle listener that will be used with ActivityManager.