0

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!

Lotse
  • 51
  • 8
  • You can use SharedPreferences , Realm , Sqlite ... to store user preferences in device. If you go to google and search for "how to store user preferences in android" you can find – Yasin Kaçmaz Jun 04 '16 at 11:46

2 Answers2

1

If you want your users to remain logged into the application everytime then one way is to use Shared Preferences in android. Shared Preferences will save the users credentials in a local storage and the user need not to enter them everytime.

Prasheel
  • 942
  • 4
  • 21
0

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.

Community
  • 1
  • 1
Deepinder Singh
  • 147
  • 4
  • 15