0

My app has two activity one is sign in and second is main,I login from sign in activity and then I go to main activity, but when I remove my app from recent tasks and reopen it, it reopens from the sign in activity.

How to make it so that it reopens from the last closed activity i.e main in this case ?

shadygoneinsane
  • 2,226
  • 1
  • 24
  • 47

1 Answers1

0

After you have Logged In, Use a shared Preference to save that action and on the launcher activity just check the value stored for the same shared preference to check if you had logged in successfully last time or not.

shadygoneinsane
  • 2,226
  • 1
  • 24
  • 47