protected void handleLoginSuccessed() { LogUtil.d(TAG, "handleLoginSuccessed"); if (mStartReconnect) { mStartReconnect = false; mReconnectCount = 0; } RequestParams params = (RequestParams) mCacheRequest.get(REQUEST_PARAMS); if (params != null) requestDataNotShowDialog(params); }
public void requestData(RequestParams params) { LogUtil.d(TAG, "requestData"); if (!mService.isNetworkConnected()) { showNoNetWorkPage(); return; } mHandler.removeCallbacks(mTimeoutTask); mService.requestData(params); mHandler.postDelayed(mTimeoutTask, mTimeout); mCacheRequest.put(REQUEST_PARAMS, params); showLoadingPage(); mHandler.postDelayed(mNoResponseTask, NoResponseTimeout); }
public void requestDataNotShowDialog(RequestParams params) { LogUtil.d(TAG, "requestDataNotShowDialog"); mService.requestData(params); mCacheRequest.put(REQUEST_PARAMS, params); }
protected void handleRequestTimeout() { LogUtil.d(TAG, "handleRequestTimeout"); if (!mService.isNetworkConnected()) { handCanNotConnectToServer(); } }