The data storage methods used in the development of Android project are: Networked storage, SQLite storage, file storage and sharedpreferences storage, four kinds of storage methods corresponding to the demo others are Networkdemo, Sqlitedemo, Filedemo and Sharedpreferencesdemo, according to the application of the scene to choose one or more ways, such as in the login interface verification, the user name and password need to be stored in sharedpreferences way, registration information need to pass The network stores the data in the background database. Combined with authentication of a login interface, the Sharedpreferences interface is used to store data in a local file for the following functions:
1. Verify that the login information is in a valid format
2. Save login Information
3. Log in again, fill in the login information
4. Display login Information
Case study: Four ways of data storage for Android Development | Teachcourse
Four ways to sharedpreferences data storage for Android development