public void onCreate(Bundle paramBundle) {
   super.onCreate(paramBundle);
   AppDealWifi.LogMsg(getClass() + " created");
   if (iMobile_AppGlobalVar.noLoad) {
     AppDealWifi.LogMsg("Application not loaded");
     doLoadAll();
   }
 }
 protected void onStop() {
   AppDealWifi.LogMsg(getClass() + " Stoped");
   super.onStop();
   if (!isAppOnForeground()) {
     mCurForegroundActivity = null;
     doSaveAll();
     iMobile_AppGlobalVar.needShowSSIDErr = false;
     AppDealWifi.LogMsg(
         "Going to background!needShowSSIDErr = " + iMobile_AppGlobalVar.needShowSSIDErr);
     ConnSSID.cancelConnecting();
     background = true;
   }
 }
 protected void onResume() {
   AppDealWifi.LogMsg(getClass() + " Resumed");
   if (iMobile_AppGlobalVar.noLoad) {
     AppDealWifi.LogMsg("Application not loaded");
     doLoadAll();
   }
   super.onResume();
   mCurForegroundActivity = this;
   if ((background) && (MsgReceiver.upgradeProcess == null)) {
     startConnWifiThread();
     background = false;
   }
 }
 protected void startConnWifiThread() {
   final String str1 = DealMsg.getSSID();
   final String str2 = DealMsg.getSSIDPwd();
   if (DealMsg.g_VINNum[0] != 0) {
     AppDealWifi.LogMsg(" -------VIN:" + DealMsg.g_VINNum.toString());
     AppDealWifi.LogMsg(" -------Get Saved SSID:" + str1 + "\n ------- PassWord:"******" ------- reset wifi ------- ");
       new Thread(
               new Runnable() {
                 public void run() {
                   iMobile_AppGlobalVar.CloseConn();
                   ConnSSID.connectToMyWifi(myActivityBase.mCurForegroundActivity, str1, str2);
                 }
               })
           .start();
     }
   }
 }
 public void doLoadAll() {
   iMobile_AppGlobalVar.SetThisApp((iMobile_AppGlobalVar) getApplication());
   iMobile_AppGlobalVar.getDeviceInfo(this);
   DealMsg.loadAll(this);
   DefMsg.loadAll(this);
   AppDealWifi.LogMsg("language is " + Locale.getDefault().getLanguage());
   if (!DealMsg.g_isDemo) {
     if (iMobile_AppGlobalVar.isConn()) {
       break label74;
     }
     AppDealWifi.LogMsg(" connect socket in doLoadAll");
     iMobile_AppGlobalVar.CloseConn();
     iMobile_AppGlobalVar.BackgroundReConn();
   }
   for (; ; ) {
     MsgReceiver.loadAll(this);
     return;
     label74:
     AppDealWifi.LogMsg(" socket is already connected in doLoadAll");
   }
 }
 protected void onPause() {
   AppDealWifi.LogMsg(getClass() + " Paused");
   super.onPause();
 }