private File loadLatestCheckSums() throws IOException { File latest = new File(getTmpDir(), UpdateConstants.CHECK_FILE); URL url = UpdateConstants.getCheckUrl(); HttpUtil.download(url, latest); if (!latest.exists()) { throw new IOException("Unable to determine latest build version"); } return latest; }
public Void doInBackground() { try { UpdateConstants.init(); _differ = new VersionDiffer(loadLatestCheckSums(), loadCurrentCheckSums()); } catch (IOException ioe) { _error = "Error: " + ioe.getMessage(); } return null; }