/* 
 * @ProjectName VideoGo
 * @Copyright null
 * 
 * @FileName UIUtils.java
 * @Description 这里对文件进行描述
 * 
 * @author chenxingyf1
 * @data 2015-4-23
 * 
 * @note 这里写本文件的详细功能描述和注释
 * @note 历史记录
 * 
 * @warning 这里写本文件的相关警告
 */
package com.videogo.util;

import android.app.Activity;
import android.content.Intent;

import com.videogo.EzvizApplication;
import com.videogo.ui.devicelist.EZDeviceListActivity;


public class ActivityUtils {
    public static void handleSessionException(Activity activity) {
        goToLoginAgain(activity);
    }

    public static void goToLoginAgain(Activity activity) {
        EzvizApplication.getOpenSDK().openLoginPage();
    }

    public static void goToMainPage(Activity activity) {
        Intent intent = new Intent(activity, EZDeviceListActivity.class);
        activity.startActivity(intent);
    }

}