I'm doing an app similar to uber and in the sign up activity I have a checkbox where the user choose if wants to be a driver or a passenger. Due to the style of the app, I need that if the user choose to be a driver the app sets the activity "drivermain" as the launcher of the app. If choose passenger the launcher activity will be "passengerMain". Once the app is closed and re-launched it should evaluate if the user is a driver or passenger to send it to the right activity, as the app was closed it lost the status of the checkbox. I tried to do it comparing data through firebase, but I just got confused and stressed.
Hope help Thanks