I am making an Android application and I want dat the entry into the applicatio开发者_如何学Pythonn should be protected by keeping the pattern lock screen as a LOG-in. Is it possible to use the Android pattern lock screen as a Log-in to our own made applications... If possible HOW...?
There are lots of very similar questions to this one already, e.g.
Reusing Android Lock Pattern
Android App and Pattern Lock Screen
You may find this project useful. Simply use the code to create pattern password
Intent intent = new Intent(context, LockPatternActivity.class);
intent.putExtra(LockPatternActivity._Mode, LockPatternActivity.LPMode.CreatePattern);
startActivityForResult(intent, _ReqCreatePattern);
and in onActivityResult you get your password.
精彩评论