예제 #1
0
  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);
  }
예제 #2
0
 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);
 }
예제 #3
0
 public void requestDataNotShowDialog(RequestParams params) {
   LogUtil.d(TAG, "requestDataNotShowDialog");
   mService.requestData(params);
   mCacheRequest.put(REQUEST_PARAMS, params);
 }
예제 #4
0
 protected void handleRequestTimeout() {
   LogUtil.d(TAG, "handleRequestTimeout");
   if (!mService.isNetworkConnected()) {
     handCanNotConnectToServer();
   }
 }