@Override
 public void handleMessage(Message msg) {
   switch (msg.what) {
     case MESSAGE_ONE:
       saveToDatabases();
       break;
     case MESSAGE_TWO:
       populateAutoComplete();
       GlobalCache.Editor = GlobalCache.Prefs.edit();
       GlobalCache.Editor.putBoolean("downloaded", true).commit();
       int RoundID = RoundExportDB.getRoundID(GlobalCache.savedRoundNum);
       GlobalCache.Editor.putInt("RoundID", RoundID).commit();
       DownloadFiles.setEnabled(true);
       VersionControl();
       break;
   }
 }
 private void VersionControl() {
   String[] HHVersionString = GlobalCache.Version.split("\\.");
   int handheldVersion =
       Integer.parseInt(HHVersionString[0] + HHVersionString[1] + HHVersionString[2]);
   int handheldD3Version =
       Integer.parseInt(
           VersionNumber.split("\\.")[0]
               + VersionNumber.split("\\.")[1]
               + VersionNumber.split("\\.")[2]);
   if (handheldVersion < handheldD3Version) {
     AlertView.showAlert(
         "Please contact system administrator to get latest version of app\nLatest Version: "
             + VersionNumber
             + "\nCurrent Version: "
             + GlobalCache.Version,
         MainUI.this);
   }
   GlobalCache.Prefs = getSharedPreferences("label", 0);
   GlobalCache.Editor = GlobalCache.Prefs.edit();
   GlobalCache.Editor.putString("DataLoadDate", DataLoad).commit();
   AppVersion.setText(
       "App Version: " + GlobalCache.Version + "\nLast Data Load Date: " + DataLoad);
   CheckLoadDataDate(DataLoad);
 }