Search code examples
androidandroid-studiomobileregistrationmobile-application

Android Studio Login to Registration Form


I'm fairly new with Android Studio and I'm current working with a Login Form for my mobile application. However, I want to make the login page "register" by adding first time users into the database and having that user always access the application without relogging rather than constantly checking if the user's account is stored and requires a login every time.

Can someone share me helpful documents or codes on this matter. Thanks!


Solution

  • You can achieve this via Shared Preference.You can save the user info and retrieve it next time when the app is opened and check whether the user is already registered or not and his details etc.

    Here is a example of Shared Preference.