Exemplo n.º 1
0
 @Override
 public void onErrorResponse(VolleyError error) {
   Logger.e(error);
   Toast.makeText(mCtx, VolleyHelper.getErrorReason(error), Toast.LENGTH_LONG).show();
   synchronized (mLocker) {
     mRsp = null;
     mLocker.notify();
   }
 }
Exemplo n.º 2
0
    @Override
    public void onErrorResponse(VolleyError error) {
      Logger.e(error);

      Message msg = Message.obtain();
      msg.what = ThreadListFragment.STAGE_ERROR;
      Bundle b = new Bundle();
      String text = "无法访问HiPDA, " + VolleyHelper.getErrorReason(error);
      b.putString(ThreadListFragment.STAGE_ERROR_KEY, text);
      msg.setData(b);
      mHandler.sendMessage(msg);

      if (HiSettingsHelper.getInstance().isErrorReportMode())
        ACRAUtils.acraReport(error, "url=" + mUrl);

      synchronized (mLocker) {
        mRsp = null;
        mLocker.notify();
      }
    }