Ejemplo n.º 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());
   }
 }
Ejemplo n.º 2
0
 public void startFirstServices() {
   if (!SharedPreferenceUtil.readEnterFlag()) {
     LogUtil.e("colin", "testService_start");
     startService(
         new Intent("com.cleanwiz.applock.service.LockService")
             .setPackage("com.cleanwiz.applock"));
     SharedPreferenceUtil.editEnterFlag(true);
   }
 }