// Path: framework/app/ActivityLifecycleCallbacks.java
// public interface ActivityLifecycleCallbacks {
//     abstract void   onActivityCreated(Activity activity, Bundle savedInstanceState);
//     abstract void	onActivityDestroyed(Activity activity);
//     abstract void	onActivityPaused(Activity activity);
//     abstract void	onActivityResumed(Activity activity);
//     abstract void	onActivitySaveInstanceState(Activity activity, Bundle outState);
//     abstract void	onActivityStarted(Activity activity);
//     abstract void	onActivityStopped(Activity activity);
// }


import android.app.ActivityManager;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;
import android.text.TextUtils;
import android.util.Log;
import android.view.Window;
import com.baidu.BaiduMap.R;
import com.elphin.framework.app.ActivityLifecycleCallbacks;
import de.greenrobot.event.EventBus;
import java.util.ArrayList;
import java.util.Stack;
                    return false;
                String pageName = record.pageName;
                String pageTag = record.pageSignature;
                BasePage targetPage = PageFactoryImpl.getInstance().getBasePageInstance(pageName,pageTag);
                if(targetPage == null)
                    return false;
                targetPage.mIsBack = true;
                targetPage.mBackArgs = args;
                //targetPage.setArguments(args);

				if (GlobalConfig.getInstance().isAnimationEnabled()) {
					// 当前界面的退出动画
					int[] customAnims = page.getCustomAnimations();
					int outAnim = customAnims[3];
					// 回退到的界面的重新进入动画
					int inAnim = targetPage.shouldOverrideCustomAnimations() ? customAnims[2]
							: targetPage.getCustomAnimations()[0];
	
					ft.setCustomAnimations(inAnim, outAnim);
				}
                ft.replace(R.id.fragment_container,targetPage,targetPage.getClass().getName()+targetPage.getPageTag());
                PageFactoryImpl.getInstance().removePage(page);
                break;
            default:
                break;
                //throw new IllegalArgumentException("Wrong stack strategy param!");
        }

        ft.commitAllowingStateLoss();

// Path: framework/app/ActivityLifecycleCallbacks.java
// public interface ActivityLifecycleCallbacks {
//     abstract void   onActivityCreated(Activity activity, Bundle savedInstanceState);
//     abstract void	onActivityDestroyed(Activity activity);
//     abstract void	onActivityPaused(Activity activity);
//     abstract void	onActivityResumed(Activity activity);
//     abstract void	onActivitySaveInstanceState(Activity activity, Bundle outState);
//     abstract void	onActivityStarted(Activity activity);
//     abstract void	onActivityStopped(Activity activity);
// }


// Path: framework/app/fpstack/BaseTask.java
import android.app.ActivityManager;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;
import android.text.TextUtils;
import android.util.Log;
import android.view.Window;
import com.baidu.BaiduMap.R;
import com.elphin.framework.app.ActivityLifecycleCallbacks;
import de.greenrobot.event.EventBus;
import java.util.ArrayList;
import java.util.Stack;

                    return false;
                String pageName = record.pageName;
                String pageTag = record.pageSignature;
                BasePage targetPage = PageFactoryImpl.getInstance().getBasePageInstance(pageName,pageTag);
                if(targetPage == null)
                    return false;
                targetPage.mIsBack = true;
                targetPage.mBackArgs = args;
                //targetPage.setArguments(args);

				if (GlobalConfig.getInstance().isAnimationEnabled()) {
					// 当前界面的退出动画
					int[] customAnims = page.getCustomAnimations();
					int outAnim = customAnims[3];
					// 回退到的界面的重新进入动画
					int inAnim = targetPage.shouldOverrideCustomAnimations() ? customAnims[2]
							: targetPage.getCustomAnimations()[0];
	
					ft.setCustomAnimations(inAnim, outAnim);
				}
                ft.replace(R.id.fragment_container,targetPage,targetPage.getClass().getName()+targetPage.getPageTag());
                PageFactoryImpl.getInstance().removePage(page);
                break;
            default:
                break;
                //throw new IllegalArgumentException("Wrong stack strategy param!");
        }

        ft.commitAllowingStateLoss();

        return true;