@Override public void onFailure(DataStorageException dse) { String message = String.format("Got %s - %s while synchronizing dataset...", dse.getClass().getSimpleName(), dse.getMessage()); Log.e(TAG, message, dse); super.onFailure(dse); }
@Override public void onFailure(final DataStorageException dse) { callingActivity.runOnUiThread(new Runnable() { @Override public void run() { dialog.dismiss(); Log.e("Sync", "failed: " + dse); Toast.makeText(callingActivity, "Sync Failed due to\n" + dse.getMessage(), Toast.LENGTH_LONG) .show(); dse.printStackTrace(); } }); }