Example #1
0
 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;
 }
Example #2
0
 public Void doInBackground() {
   try {
     UpdateConstants.init();
     _differ = new VersionDiffer(loadLatestCheckSums(), loadCurrentCheckSums());
   } catch (IOException ioe) {
     _error = "Error: " + ioe.getMessage();
   }
   return null;
 }