When users log in to your application, store the login status into sharedPreference and clear sharedPreference when users log out. Check every time when the user enters into the application if user status from shared Preference is true then no need to log in again otherwise direct to the login page.
Should you log out of apps?
But even with a passcode, it’s still a good idea to log out of your apps whenever you use them, or at least log out of the critical apps if entering your password is too much of a bother. … The first step is to get into your account and change your email password. Right away, you’re locked out of it.
How do I keep apps logged in?
Choose Apps & notifications from Settings, tap an app name, then choose Advanced and Time spent in app. Touch the App Timer button to set your limit for the day—anywhere from five minutes to 23 hours and 55 minutes. There’s also Wind Down, which will help wean you off your phone at the end of the day.