android - How to create session and stay user logged in until logout application? -


hello building 1 application in application works fine want add session in application,when user run application first time user should log in after closing , again when user open app,my app should not ask log in again..

creating "session" in android complex, if want complete functionality.

you sound need once - in case should use sharedpreferences

how use sharedpreferences in android store, fetch , edit values

this easy way handle simple data storage. in launch activity can check see if user "logged" in (in oncreate or onresume) - if not, launch login activity.

if need true "login" need in every activity. also, need update user activity keep them "logged in" - in case search "automatic logout" - depends on particular needs , app. can complex.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -