Based on the user requirements, he wants to use our android application via pin code access like login whenever he starts to use this application. In Android or any mobile, most of the applications start again the last using layout. so which event should i call this login alertdialog to access each time users start to use it? Or let me know the better. Thank you.
Share
You will have to add a snippet of code in each
Activityyou have so that it ask the user to type the user & password. If you are using normal activities I guess you can add the snippet inside methods likeonRestoreInstanceStateso that you can be sure it will be executed as soon as the user (re)open the activity.