@Override public void onRequestFailure(SpiceException e) { Toast.makeText(getActivity(), "Error during request: " + e.getMessage(), Toast.LENGTH_LONG) .show(); progressBar.setVisibility(View.GONE); }
@Override public void onRequestFailure(SpiceException exception) { Log.v(TAG, exception.getMessage()); if (exception.getCause() instanceof HttpClientErrorException) { HttpClientErrorException e = (HttpClientErrorException) exception.getCause(); if (e.getStatusCode().equals(HttpStatus.UNAUTHORIZED)) { dh.clearPesistentUser(); Intent intent = new Intent(FriendsList.this, LoginActivity.class); FriendsList.this.startActivity(intent); finish(); } } }
@Override public void onRequestFailure(SpiceException exception) { Log.e(TAG, "failure" + exception.getMessage()); Toast.makeText(getApplicationContext(), "Failed to confirm friend", Toast.LENGTH_LONG).show(); if (exception.getCause() instanceof HttpClientErrorException) { HttpClientErrorException e = (HttpClientErrorException) exception.getCause(); if (e.getStatusCode().equals(HttpStatus.UNAUTHORIZED)) { dh.clearPesistentUser(); Intent intent = new Intent(FriendsList.this, LoginActivity.class); FriendsList.this.startActivity(intent); finish(); } } }
@Override public void onRequestFailure(SpiceException se) { // TODO Auto-generated method stub Log.d("tete", "ERROR : " + AccountFragment.class.getCanonicalName() + " " + se.getMessage()); }
@Override public void onRequestFailure(SpiceException spiceException) { Toast.makeText( NewProductActivity.this, "Error: " + spiceException.getMessage(), Toast.LENGTH_SHORT) .show(); }