Android Open Source - Example code duress-unlock-demo






Project Summary

A demonstration of a tweaked Android unlock that supports a duress code (triggered when the release after the last stroke is beyond the last target)..

Web Site / Source Repository

duress-unlock-demo is hosted in the following web site
https://github.com/diogomarques/duress-unlock-demo

If you think the Android project duress-unlock-demo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Project Detail

The following table is the detailed list of duress-unlock-demo.

ItemValue
Java File Count4
Supported screen sizes[mdpi, ldpi, hdpi, xhdpi]
Target SDK Version18
Minimum SDK Version8
Activity Count1
jar files usedandroid-support-v4.jar




Resource Files

There are 22 image files in duress-unlock-demo. The names of the image files are listed as follows.

btn_code_lock_default.png
btn_code_lock_touched.png
ic_action_play.png
ic_action_show.png
ic_btn_next.png
ic_challenge.png
ic_configure.png
ic_learn.png
ic_unlock.png
indicator_code_lock_drag_direction_green_up.png
indicator_code_lock_drag_direction_red_up.png
indicator_code_lock_point_area_default.png
indicator_code_lock_point_area_green.png
indicator_code_lock_point_area_red.png
lock_anim_00.png
lock_anim_02.png
lock_anim_04.png
lock_anim_06.png
lock_anim_08.png
lock_anim_10.png
lock_anim_12.png
lock_anim_14.png

The following screenshort is generated from the image listed above.

null




Java Source Files

duress-unlock-demo has the following Java source files.

net.diogomarques.android_duress_unlock.MainActivity.java
net.diogomarques.android_duress_unlock.PatternUtils.java
net.diogomarques.android_duress_unlock.UnlockPatternActivity.java
net.diogomarques.com.android.internal.widget.LockPatternView.java