private void onTransdelLogin(ResponseDataPacket dataPacket) { log.e("Login success..."); object = new PublicType.UserLoginResult(); try { object.parseJson(dataPacket.data); log.e( "mForceUpdate = " + object.mForceUpdate + "\n" + "mHaveNewVer = " + object.mHaveNewVer + "\n" + "mVerCode = " + object.mVerCode + "\n" + "mVerName = " + object.mVerName + "\n" + "mAppUrl = " + object.mAppUrl + "\n" + "mVerDescribre = " + object.mVerDescribre); if (object.mForceUpdate != 0) { if (forceUpdateDialog != null) { forceUpdateDialog.dismiss(); } forceUpdateDialog = getForceUpdateDialog(object); forceUpdateDialog.show(); return; } if (object.mHaveNewVer != 0) { CommonUtil.showToast(R.string.toast_update_warn, this); } mApplication.setUserLoginResult(object); mApplication.setLoginStatus(true); goMainActivity(); } catch (JSONException e) { e.printStackTrace(); CommonUtil.showToast(R.string.toast_login_fail, this); exit(); } }
private void initData() { mApplication = LAroundApplication.getInstance(); mClientEngine = ClientEngine.getInstance(getApplicationContext()); }