@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHeartbeatEnabled(true); mPatternIcon.setPassword("03678"); mPatternCanvas.setOnPasswordDrawnListener( new PatternCanvas.OnPasswordDrawnListener() { @Override public void onPasswordDrawn(PatternCanvas canvas, String password) { if (AppUtil.equals(password, mPatternIcon.getPassword())) { finish(); } else { toast("Error pattern"); canvas.refresh(); } } }); }
@Override protected void onNewIntent(Intent intent) { super.onNewIntent(intent); showMessage(intent); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); showMessage(getIntent()); }