An easily implementable Lockscreen library for Android

Android App Lockscreen

An easily implementable, clean, minimal Lockscreen module for Android Apps.

Screenshots

Image1 Image2

Installation

Add it in your root build.gradle at the end of repositories:

allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
  }
}

Add the dependency

dependencies {
    implementation 'com.github.p32929:AndroidAppLockscreen:1.1'
}

Usage

Steps to follow:

  • Extend all Activities by LockscreenHandler
  • Add EasyLock.checkPassword(this); in your MainActivity's onCreate method (or whichever activity starts at first)

After that you can:

  • Set password
  • Set background color
  • Check password
  • Change password
  • Disable password

Example:

Step 1: * Extend all Activities by LockscreenHandler like this:

public class MainActivity extends LockscreenHandler {
   // ............................................
}

Step 2: Add EasyLock.checkPassword(this); in your MainActivity's onCreate method (or whichever activity starts at first) like this:

@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        EasyLock.checkPassword(this);
}

Set, Check, Change, Disable Password:

  • To set a password, call EasyLock.setPassword();
  • To set background color, call EasyLock.setBackgroundColor();
  • To check password, call EasyLock.checkPassword();
  • To change password, call EasyLock.changePassword();
  • To disable password, call EasyLock.disablePassword();

Check out the app in the repository for more info :)
Enjoy...

GitHub