In Android, the data storage technique balances the speed, efficiency, and robustness:
Using shared preference
When storing the UI status, user settings, or program settings, you may want a lightweight mechanism to store known datasets. Shared preference, also known as preference, allows you to save key/value pairs of basic data in groups.
Upload File
It is not exquisite, but sometimes file can only be the only path to write or read data. Android allows you to create and load files on the device's internal or external media.
❑ SQLite Database
Android provides the SQLite associated database, which is the best way to manage structured data. Each application can create its own database and have full control over it.
Technical content provider
Compared with your own internal storage mechanism, content provider allows you to use a well-defined interface for using and sharing private data. You can use a standard permission system to control access to the content provider.