and re-launch if the app terminates. --> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.HOME"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity> </application> Home Activity Support
= UpdateManager.getInstance() val policy = UpdatePolicy.Builder() .setPolicy(UpdatePolicy.POLICY_APPLY_ONLY) .setApplyDeadline(7L, TimeUnit.DAYS) .build() manager.setPolicy(policy) public static final int POLICY_APPLY_AND_REBOOT = 1; public static final int POLICY_APPLY_ONLY = 2; public static final int POLICY_CHECKS_ONLY = 3;