views:

39

answers:

1

I have read this question: http://stackoverflow.com/questions/2154438/how-to-implement-remember-me-function-in-login-of-android-activity ,

I am developing "Login" Activity for the first-time, Where i am also having:

  1. two EditText: Username, Password
  2. One checkbpx: Remember me
  3. one Button: Login

If user click on Login Button then Username, Password should be shared among all activity, i know this can be implemented using SharedPreference.

But On "Remember me" checkbox, if user check it once then next-time "Login" Activity should not be appeared, directly 2nd activity should appear, so for that what i should do?

+1  A: 

For this Scenario, I do that Before Login Activity i have Splash Screen to check whether the Remember Password option enabled or not on the Login Activity.

Splash Screen Also a Activity that has just a well designed image about my App (like loading App screen). Its show for just 3 seconds.

example for Splash Screen in this link

Praveen Chandrasekaran
@Praveen ok i got your idea, it is exact one but what if i dont have splash screen and directly login-activity
PM - Paresh Mayani