@Override public void onZipped(Bulletin bulletin, File zippedFile) { try { ZipFile zipFile = new ZipFile(zippedFile); BulletinZipUtilities.validateIntegrityOfZipFilePackets( store.getAccountId(), zipFile, getSecurity()); } catch (Exception e) { Log.e(TAG, getString(R.string.error_message_error_verifying_zip_file), e); indeterminateDialog.dismissAllowingStateLoss(); Toast.makeText(this, getString(R.string.failure_zipping_bulletin), Toast.LENGTH_LONG).show(); finish(); return; } if (zippedFile == null) { Toast.makeText(this, getString(R.string.failure_zipping_bulletin), Toast.LENGTH_SHORT).show(); return; } uploadBulletin(bulletin, zippedFile); }