@@ -29,10 +29,11 @@ dependencies {
29
29
## Usage
30
30
Steps to follow:
31
31
* Extend all `` Activities `` by `` LockscreenHandler ``
32
- * Add ``` EasyLock.checkPassword(this); ``` in your ``` MainActivity ``` (or whichever activity starts at first)
32
+ * Add ``` EasyLock.checkPassword(this); ``` in your ``` MainActivity ``` 's ``` onCreate ``` method (or whichever activity starts at first)
33
33
34
34
After that you can:
35
35
* Set password
36
+ * Set background color
36
37
* Check password
37
38
* Change password
38
39
* Disable password
@@ -46,7 +47,7 @@ public class MainActivity extends LockscreenHandler {
46
47
}
47
48
```
48
49
49
- Step 2: Add ``` EasyLock.checkPassword(this); ``` in your ``` MainActivity ``` (or whichever activity starts at first) like this:
50
+ Step 2: Add ``` EasyLock.checkPassword(this); ``` in your ``` MainActivity ``` 's ``` onCreate ``` method (or whichever activity starts at first) like this:
50
51
51
52
```
52
53
@Override
@@ -60,14 +61,11 @@ Step 2: Add ```EasyLock.checkPassword(this);``` in your ```MainActivity``` (or w
60
61
61
62
## Set, Check, Change, Disable Password:
62
63
* To set a password, call ``` EasyLock.setPassword(); ```
64
+ * To set background color, call ``` EasyLock.setBackgroundColor(); ```
63
65
* To check password, call ``` EasyLock.checkPassword(); ```
64
66
* To change password, call ``` EasyLock.changePassword(); ```
65
67
* To disable password, call ``` EasyLock.disablePassword(); ```
66
68
67
- ``` setPassword ``` , ``` changePassword ``` & ``` disablePassword ``` needs two parameters:
68
- 1st parameter is the ``` Context ``` & the
69
- 2nd parameter is the ``` Activity class ``` to go after finising setting, changing or disabling password...
70
-
71
69
Check out the app in the repository for more info :)
72
70
Enjoy...
73
71
0 commit comments