title: Android: Adding Lock Pattern to an activity
body: <p>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. </p>
  
  <p><strong>How do i add this pattern lock in the activity.</strong>
  Tried to implement the android-lockpattern library but doesn't know how to use it.</p>