示例#1
0
 @Override
 public void onFailure(
     int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {
   // TODO Auto-generated method stub
   Toast.makeText(getActivity(), "网络连接超时", Toast.LENGTH_LONG).show();
   super.onFailure(statusCode, headers, throwable, errorResponse);
   loadingPDialog.dismiss();
 }
示例#2
0
 @Override
 public void onFailure(
     int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {
   // TODO Auto-generated method stub
   super.onFailure(statusCode, headers, throwable, errorResponse);
   String avatar_head = shared.getString("member_avatar", "");
   String url = LandousAppConst.avatar_url_head + avatar_head;
   ImageLoader.getInstance()
       .displayImage(url, avatar_head_image, LandousApplication.options_circle);
   name.setVisibility(View.GONE);
   security.setVisibility(View.GONE);
   security_img.setVisibility(View.GONE);
   welcome_word.setVisibility(View.GONE);
   vip_icon.setVisibility(View.GONE);
   login_or_regist.setVisibility(View.VISIBLE);
   number_info.setVisibility(View.GONE);
   coin_num.setText("积分:" + shared.getString("member_points", "0"));
   pre_deposit.setText("预存款:¥" + shared.getString("available_predeposit", "0.00"));
 }