Because the user name and password are simple data types, user information can be stored by the SharedPreferences class, which stores private primitive data in key-value pairs. To store and read user information, the following steps should be performed: