java - Trigger a function when three consecutive wrong password tries -


i beginner in android development.
android device have password use. password may numeric or pattern.
want trigger function when tries 3 consecutive wrong password inputs.
not making password app. password app security app chosen device user.
when ever try security app password assess device function trigger.
app trigger when other security app password accessed

thanks in advance

have class variable called passwordretrycount = 0;

then everytime user types password, if wrong, following:

passwordretrycount++;

if (passwordretrycount == 3) { //trigger function }


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -