passwords - android enable or disable passcode lock using shared preference -
i designed passcode lock activity requires user input passcode before accessing app.
i have setting page allow user enable or disable passcode lock, , setting saved in sharedpreference
how can app:
- show passcodelock activity upon launch or resume if "passcode lock" in setting page checked?
- not show passcodelock activity if "passcode lock" in setting page unchecked?
its simple logic in oncreate method of passcode activity value of "passcode lock" shared preference
if(passcode){ /* * startactivity(new intent(this,yournextpage.class)); * / }
so if "passcode lock" checked not display passcode activity...
hope you
Comments
Post a Comment