// Path: app/src/main/java/com/pandocloud/freeiot/utils/ActivityUtils.java
// public class ActivityUtils {
//     
//     public static final int REQUEST_CODE_INVALID = -1;
//     
//     public static void start(Fragment fragment, Class<?> cls) {
//         start(null, fragment, cls, null, REQUEST_CODE_INVALID, 0, 0);
//     }
//     
//     public static void start(Fragment fragment, Class<?> cls, Bundle extras) {
//         start(null, fragment, cls, extras, REQUEST_CODE_INVALID, 0, 0);
//     }
//     
//     public static void start(Fragment fragment, Class<?> cls, int req_code) {
//         start(null, fragment, cls, null, req_code, 0, 0);
//     }
//     
//     public static void start(Fragment fragment, Class<?> cls, Bundle extras, int req_code) {
//         start(null, fragment, cls, extras, req_code, 0, 0);
//     }
//     
//     public static void start(Activity activity, Class<?> cls) {
//         start(activity, null, cls, null, REQUEST_CODE_INVALID, 0, 0);
//     }
//     
//     public static void start(Activity activity, Class<?> cls, Bundle extras) {
//         start(activity, null, cls, extras, REQUEST_CODE_INVALID, 0, 0);
//     }
//     
//     public static void start(Activity activity, Class<?> cls, int req_code) {
//         start(activity, null, cls, null, req_code, 0, 0);
//     }
//     
//     public static void start(Activity activity, Class<?> cls, Bundle extras, int req_code) {
//         start(activity, null, cls, extras, req_code, 0, 0);
//     }
//     
//     public static void start(Activity activity, Class<?> cls, int enterAnim, int exitAnim) {
//         start(activity, null, cls, null, REQUEST_CODE_INVALID, enterAnim, exitAnim);
//     }
//     
//     public static void start(Activity activity, Class<?> cls, Bundle extras, int enterAnim, int exitAnim) {
//         start(activity, null, cls, extras, REQUEST_CODE_INVALID, enterAnim, exitAnim);
//     }
//     
//     public static void start(Activity activity, Class<?> cls, int req_code, int enterAnim, int exitAnim) {
//         start(activity, null, cls, null, req_code, enterAnim, exitAnim);
//     }
//     
//     public static void start(Activity activity, Class<?> cls, Bundle extras, int req_code, int enterAnim, int exitAnim) {
//         start(activity, null, cls, extras, req_code, enterAnim, exitAnim);
//     }
//     
//     public static void start(Activity activity, Fragment fragment, Class<?> cls, Bundle extras, int req_code,
//             int enterAnim, int exitAnim) {
//         if (null != activity) {
//             Intent intent = new Intent(activity, cls);
//             if (null != extras) {
//                 intent.putExtras(extras);
//             }
//             
//             if (REQUEST_CODE_INVALID == req_code) {
//                 activity.startActivity(intent);
//             } else {
//                 activity.startActivityForResult(intent, req_code);
//             }
//             
//             if (0 != enterAnim || 0 != exitAnim) {
//                 activity.overridePendingTransition(enterAnim, exitAnim);
//             }
//         } else if (null != fragment) {
//             activity = fragment.getActivity();
//             
//             if (null != activity) {
//                 Intent intent = new Intent(activity, cls);
//                 if (null != extras) {
//                     intent.putExtras(extras);
//                 }
//                 if (REQUEST_CODE_INVALID == req_code) {
//                     fragment.startActivity(intent);
//                 } else {
//                     fragment.startActivityForResult(intent, req_code);
//                 }
//                 
//                 if (0 != enterAnim || 0 != exitAnim) {
//                     activity.overridePendingTransition(enterAnim, exitAnim);
//                 }
//             }
//         }
//     }
//     
//     public static void animFinish(Activity activity, int enterAnim, int exitAnim) {
//     	if (activity == null) {
// 			return;
// 		}
//     	activity.finish();
//     	activity.overridePendingTransition(enterAnim, exitAnim);
//     }
// }


import android.support.v4.app.FragmentActivity;
import com.pandocloud.freeiot.R;
import com.pandocloud.freeiot.utils.ActivityUtils;

package com.pandocloud.freeiot.ui.base;



public class BaseActivity extends FragmentActivity {


    @Override
    public void onBackPressed() {
        super.onBackPressed();

// Path: app/src/main/java/com/pandocloud/freeiot/utils/ActivityUtils.java
// public class ActivityUtils {
//     
//     public static final int REQUEST_CODE_INVALID = -1;
//     
//     public static void start(Fragment fragment, Class<?> cls) {
//         start(null, fragment, cls, null, REQUEST_CODE_INVALID, 0, 0);
//     }
//     
//     public static void start(Fragment fragment, Class<?> cls, Bundle extras) {
//         start(null, fragment, cls, extras, REQUEST_CODE_INVALID, 0, 0);
//     }
//     
//     public static void start(Fragment fragment, Class<?> cls, int req_code) {
//         start(null, fragment, cls, null, req_code, 0, 0);
//     }
//     
//     public static void start(Fragment fragment, Class<?> cls, Bundle extras, int req_code) {
//         start(null, fragment, cls, extras, req_code, 0, 0);
//     }
//     
//     public static void start(Activity activity, Class<?> cls) {
//         start(activity, null, cls, null, REQUEST_CODE_INVALID, 0, 0);
//     }
//     
//     public static void start(Activity activity, Class<?> cls, Bundle extras) {
//         start(activity, null, cls, extras, REQUEST_CODE_INVALID, 0, 0);
//     }
//     
//     public static void start(Activity activity, Class<?> cls, int req_code) {
//         start(activity, null, cls, null, req_code, 0, 0);
//     }
//     
//     public static void start(Activity activity, Class<?> cls, Bundle extras, int req_code) {
//         start(activity, null, cls, extras, req_code, 0, 0);
//     }
//     
//     public static void start(Activity activity, Class<?> cls, int enterAnim, int exitAnim) {
//         start(activity, null, cls, null, REQUEST_CODE_INVALID, enterAnim, exitAnim);
//     }
//     
//     public static void start(Activity activity, Class<?> cls, Bundle extras, int enterAnim, int exitAnim) {
//         start(activity, null, cls, extras, REQUEST_CODE_INVALID, enterAnim, exitAnim);
//     }
//     
//     public static void start(Activity activity, Class<?> cls, int req_code, int enterAnim, int exitAnim) {
//         start(activity, null, cls, null, req_code, enterAnim, exitAnim);
//     }
//     
//     public static void start(Activity activity, Class<?> cls, Bundle extras, int req_code, int enterAnim, int exitAnim) {
//         start(activity, null, cls, extras, req_code, enterAnim, exitAnim);
//     }
//     
//     public static void start(Activity activity, Fragment fragment, Class<?> cls, Bundle extras, int req_code,
//             int enterAnim, int exitAnim) {
//         if (null != activity) {
//             Intent intent = new Intent(activity, cls);
//             if (null != extras) {
//                 intent.putExtras(extras);
//             }
//             
//             if (REQUEST_CODE_INVALID == req_code) {
//                 activity.startActivity(intent);
//             } else {
//                 activity.startActivityForResult(intent, req_code);
//             }
//             
//             if (0 != enterAnim || 0 != exitAnim) {
//                 activity.overridePendingTransition(enterAnim, exitAnim);
//             }
//         } else if (null != fragment) {
//             activity = fragment.getActivity();
//             
//             if (null != activity) {
//                 Intent intent = new Intent(activity, cls);
//                 if (null != extras) {
//                     intent.putExtras(extras);
//                 }
//                 if (REQUEST_CODE_INVALID == req_code) {
//                     fragment.startActivity(intent);
//                 } else {
//                     fragment.startActivityForResult(intent, req_code);
//                 }
//                 
//                 if (0 != enterAnim || 0 != exitAnim) {
//                     activity.overridePendingTransition(enterAnim, exitAnim);
//                 }
//             }
//         }
//     }
//     
//     public static void animFinish(Activity activity, int enterAnim, int exitAnim) {
//     	if (activity == null) {
// 			return;
// 		}
//     	activity.finish();
//     	activity.overridePendingTransition(enterAnim, exitAnim);
//     }
// }


// Path: app/src/main/java/com/pandocloud/freeiot/ui/base/BaseActivity.java
import android.support.v4.app.FragmentActivity;
import com.pandocloud.freeiot.R;
import com.pandocloud.freeiot.utils.ActivityUtils;

package com.pandocloud.freeiot.ui.base;



public class BaseActivity extends FragmentActivity {


    @Override
    public void onBackPressed() {
        super.onBackPressed();

        ActivityUtils.animFinish(this, R.anim.slide_in_from_left, R.anim.slide_out_to_right);
