fork from http://code.google.com/p/android-lockpattern/