Skip to main content

Android auth-dialog when app starts -


i have questions. i'm trying auth-dialog, user enters pass work app. entered pass store in sharedpreferences. so, 1-st question: right idea security point of view store password in way ?

2nd , main question: dialog must opened when app starts. it's done in oncreate() - method. it's not right, because, example: run app, enter pass, clicked ok-button , dialog closed. when change rotation of screen, dialog opens again, because when rotate screen, activity destroyed , oncreate()-method called again. so, should place code opens auth dialog, open when app starts ?

thanks answers !

android auth-dialog when app starts - stack overflow

learn, share, build

each month, on 50 million developers come stack overflow learn, share knowledge, , build careers.

join world’s largest developer community.

sign up

i have questions. i'm trying auth-dialog, user enters pass work app. entered pass store in sharedpreferences. so, 1-st question: right idea security point of view store password in way ?

2nd , main question: dialog must opened when app starts. it's done in oncreate() - method. it's not right, because, example: run app, enter pass, clicked ok-button , dialog closed. when change rotation of screen, dialog opens again, because when rotate screen, activity destroyed , oncreate()-method called again. so, should place code opens auth dialog, open when app starts ?

thanks answers !

share|improve question

your answer

 
discard

posting answer, agree privacy policy , terms of service.

browse other questions tagged or ask own question.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -