コード例 #1
0
 private void doUpdate() {
   AppLockApplication appLockApplication = AppLockApplication.getInstance();
   if (System.currentTimeMillis() - SharedPreferenceUtil.readUpdateTipTime() >= 1000 * 60 * 60 * 20
       && appLockApplication.hasNewVersion()) {
     downLoadFileUrl = appLockApplication.getUpdateVersionUrl();
     showUpdateDialog(appLockApplication.getUpdateVersionIntro());
     SharedPreferenceUtil.editUpdateTipTime(System.currentTimeMillis());
   }
 }
コード例 #2
0
 void checkVersion() {
   AppLockApplication appLockApplication = AppLockApplication.getInstance();
   if (appLockApplication.hasNewVersion()) {
     downLoadFileUrl = appLockApplication.getUpdateVersionUrl();
     showUpdateDialog(appLockApplication.getUpdateVersionIntro());
   } else {
     ToastUtils.showToast(R.string.no_new_version);
   }
 }
コード例 #3
0
 public void checkVersion() {
   if (appLockApplication.hasNewVersion()) {
     downLoadFileUrl = appLockApplication.getUpdateVersionUrl();
     showUpdateDialog(appLockApplication.getUpdateVersionIntro());
   }
 }