Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

AndroidAppLockscreen: drop a PIN lockscreen into any Android app in minutes

Описание и применение

Библиотека AndroidAppLockscreen позволяет быстро добавить экран блокировки с PIN-кодом в любое Android-приложение. Она решает проблему дублирования кода и избыточности решений на базе Firebase, обрабатывая жизненный цикл активности для предотвращения ложных срабатываний.

Задача

Developers often copy-paste PIN lockscreen implementations across multiple projects or rely on heavy backend solutions like Firebase or biometrics when only a simple, local PIN entry is needed.

Результат

A minimal, MIT-licensed library that integrates a PIN lockscreen into Android apps in minutes, handling complex activity lifecycle scenarios automatically.

Рабочий процесс

  • Add the JitPack repository to the project.
  • Add the dependency 'com.github.p32929:AndroidAppLockscreen:1.2' to build.gradle.
  • Extend activities with LockscreenHandler.
  • Call EasyLock.checkPassword(this) in MainActivity's onCreate.
  • Use EasyLock methods (setPassword, changePassword, disablePassword) for password management.

Доказательства

i built it after copy-pasting the same lockscreen implementation across three different projects.

Источник

LockscreenHandler handles all of that — it knows the difference between 'user left the app' and 'activity was recreated internally'.

Источник

  • Дата записи: 2026-09-10T10:48:31.006Z