Chapter 6: Full Data Storage Solution - Detailed Persistence Technology

There are three persistence technologies available on Android:

  1. Ordinary file storage;
  2. SharedPreferences based on XML format
  3. Lightweight relational database SQLite

Among them, the open source ORM framework LitePal can be used to improve the efficiency when operating the database SQLite.

source code

See the source code: https://github.com/optor666/first-line-code-of-android/tree/master/chapter06

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324887204&siteId=291194637