package com.letv.android.client.activity;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.Typeface;
import android.net.Uri;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.Process;
import android.text.SpannableStringBuilder;
import android.text.TextUtils;
import android.text.style.ForegroundColorSpan;
import android.util.Log;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.view.animation.AnimationUtils;
import android.view.animation.RotateAnimation;
import android.widget.FrameLayout.LayoutParams;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.letv.adlib.sdk.types.AdElement.AdCommonType;
import com.letv.adlib.sdk.types.AdElementMime;
import com.letv.ads.ex.client.AdPlayStateListener;
import com.letv.ads.ex.ui.AdViewProxy;
import com.letv.ads.ex.ui.AdViewProxy.ClientListener;
import com.letv.ads.ex.utils.AdsManagerProxy;
import com.letv.ads.ex.utils.PlayConstantUtils.SPConstant;
import com.letv.android.client.LetvApplication;
import com.letv.android.client.R;
import com.letv.android.client.activity.popdialog.ContinuePayDialogHandler;
import com.letv.android.client.activity.popdialog.DownLoadApkDialogHandler;
import com.letv.android.client.activity.popdialog.InviteDialogHandler;
import com.letv.android.client.activity.popdialog.ReceiveVipDialogHandler;
import com.letv.android.client.activity.popdialog.UpgradeDialogHandler;
import com.letv.android.client.activity.popdialog.WoMainDialogHandler;
import com.letv.android.client.commonlib.activity.LetvBaseActivity;
import com.letv.android.client.commonlib.bean.RedPacketFrom;
import com.letv.android.client.commonlib.config.AlbumPlayActivityConfig;
import com.letv.android.client.commonlib.config.FloatBallConfig;
import com.letv.android.client.commonlib.config.LetvLoginActivityConfig;
import com.letv.android.client.commonlib.config.LetvWebViewActivityConfig;
import com.letv.android.client.commonlib.config.LiveRoomConfig;
import com.letv.android.client.commonlib.config.MainActivityConfig;
import com.letv.android.client.commonlib.config.MainActivityConfig.GoToChannel;
import com.letv.android.client.commonlib.config.MainActivityConfig.GoToChannelByCid;
import com.letv.android.client.commonlib.config.MyDownloadActivityConfig;
import com.letv.android.client.commonlib.utils.UIControllerUtils;
import com.letv.android.client.fragment.ChannelDetailFragment;
import com.letv.android.client.fragment.FindFragment;
import com.letv.android.client.fragment.HomeFragment;
import com.letv.android.client.fragment.MineFragment;
import com.letv.android.client.fragment.TopRecommendFragment;
import com.letv.android.client.fragment.VipFragment;
import com.letv.android.client.hot.LetvHotActivity;
import com.letv.android.client.live.controller.LivePlayerController.SysConfigChangeEvent;
import com.letv.android.client.live.fragment.LiveFragment;
import com.letv.android.client.live.fragment.LiveFragment.COUNTRY_CHANGE_EVENT;
import com.letv.android.client.mymessage.MyMessageRequest;
import com.let