I have wrote another application, now it is store only my private data. Whenever user click on the application icon, as you know, application will start. I want to put password before the my application is starting up. If user will write password incorrectly, at most 5 times, application will not start.
My question is ; how can I put password and do not let my application to start if incorrect pass given ?
Your main activity should provide a prompt to enter the password. The password box should be an
EditTextwith the password property set (to make the characters hidden when typing in it). You should also have a submitButtonwhich will check the password for the one you have stored. You should have a counter which will increment to 5 as each wrongly typed password is entered. When it reaches 5, you can usefinish()to kill the activity (finish()is called on theActivityyou’re using). If they type the correct password, you can launch anIntentto start anotherActivitywhich will be your actual application.