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

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -