'Android: Adding Lock Pattern to an activity
I'm developing an alarm application in which the alarm is set and then it is received by the Broadcast Receiver after that it will redirect to an activity. I want to add a pattern lock at this activity. Once the correct combination of pattern is entered the phone will stop ringing.
How do i add this pattern lock in the activity. Tried to implement the android-lockpattern library but doesn't know how to use it.
Solution 1:[1]
Simply add this pattern lock activity in front of your activity which starts after alarm is rung. then if pattern matches then Do whatever you want to Do
refer to this project for pattern lock.
Solution 2:[2]
In my case I caught the library which the link of demo app direct us. The library avaliable at site have problems. But the library found in link demo app link it's working. Using this library it's possible implement the guidelines site and compile without problems. See the options menu
Export source code
at the demo app to get the library.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Leonardo Costa |
