Good evening, I'm new to programming, I'm starting now. My question is this, I started to study the Facebook Login API, she is logging in normally and forwarding to the next activity, so far so good. The problem is when I close the application and open again, it starts at the first activity with the "exit" button, the API itself, after leaving and logging in again it directs me to the next activity. How would I record the login, so when the application was restarted it would check if it is already logged in to the second activity? Thanks!