/android-passcode-lock-compat

Android passcode lock compat ( < API14)

Primary LanguageJavaApache License 2.0Apache-2.0

android-passcode-lock-compat

Android passcode lock compat ( 8+)

###This repository is based on Android-PasscodeLock and android-activitylifecyclecallbacks-compat.

The Android-PasscodeLock repository is only support 14+, but my APP need to support 11+, so I merge the two repositories. And fix one unreasonable situation in this repository.

How To Use:

(SdkVersion < 14):

  • All your activity that needed to lock, should to extends LifecycleDispatch***Activity.

  • In your Application file, you should call

AppLockManager.getInstance().enableDefaultAppLockIfAvailable(this);

More Details: