@Override
    public void onRequestFailure(SpiceException e) {
      Toast.makeText(getActivity(), "Error during request: " + e.getMessage(), Toast.LENGTH_LONG)
          .show();

      progressBar.setVisibility(View.GONE);
    }
예제 #2
0
 @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();
     }
   }
 }
예제 #3
0
 @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());
 }
예제 #5
0
 @Override
 public void onRequestFailure(SpiceException spiceException) {
   Toast.makeText(
           NewProductActivity.this, "Error: " + spiceException.getMessage(), Toast.LENGTH_SHORT)
       .show();
 }