I've some information in my application , it's my company information . I want to make a login every time app closes and runs .
this is what i've done so far . I make a custom dialog with user and password field . The problem is this , every time I rotate the screen or I come to MainActivity , I need to re login and it's bothering alot .
I want this dialog comes up every time I close the app and run it again , just that . I've tried onStop and onDestory but when I rotate the screen or change the activity and leave mainactivity , it show me this dialog .
How can I show the dialog only the first time app runs and if I close the app and run it again ,it asks me to login again ?
thanks