package com.letv.mobile.lebox.ui.main;

import android.app.Activity;
import android.content.DialogInterface;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnLongClickListener;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.Toast;
import com.letv.mobile.lebox.R;
import com.letv.mobile.lebox.config.LeBoxAppConfig;
import com.letv.mobile.lebox.connect.LeboxConnectManager;
import com.letv.mobile.lebox.connect.LeboxConnectManager.ConnectProgressReciver;
import com.letv.mobile.lebox.heartbeat.HeartbeatManager;
import com.letv.mobile.lebox.heartbeat.HeartbeatObserver;
import com.letv.mobile.lebox.http.lebox.bean.OtaVersionBean;
import com.letv.mobile.lebox.httpmanager.HttpCacheAssistant;
import com.letv.mobile.lebox.httpmanager.HttpRequesetManager;
import com.letv.mobile.lebox.httpmanager.HttpRequesetManager.HttpCallBack;
import com.letv.mobile.lebox.jump.PageJumpUtil;
import com.letv.mobile.lebox.net.LeBoxNetworkManager;
import com.letv.mobile.lebox.ui.qrcode.LeboxQrCodeBean;
import com.letv.mobile.lebox.utils.DialogUtil;
import com.letv.mobile.lebox.utils.Logger;
import com.letv.mobile.lebox.utils.SharedPreferencesUtil;
import com.letv.mobile.lebox.utils.Util;
import com.letv.mobile.lebox.view.pulltorefresh.PullToRefreshBase;
import com.letv.mobile.lebox.view.pulltorefresh.PullToRefreshBase.Mode;
import com.letv.mobile.lebox.view.pulltorefresh.PullToRefreshBase.OnRefreshListener;
import com.letv.mobile.lebox.view.pulltorefresh.PullToRefreshScrollView;
import com.tencent.open.yyb.TitleBar;

public class LeBoxMainActivity extends Activity implements OnClickListener, OnLongClickListener {
    private static final String TAG = LeBoxMainActivity.class.getSimpleName();
    private boolean isNeedUpgrade;
    private boolean isResetName;
    private ImageView le_box_roo