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 !
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 ! | |||
|