File operation Android Data storage method
- Sharedpreferences Storage
- File storage
- SQLite database Storage
- ContentProvider Storage
- Networked storage
Resource File storage Directory
|
Res/xml |
The custom XML file. These files are compiled into the application at run time and can be obtained at run time using the Resources.getxml () method |
|
Res/raw |
The custom RAW format resource will be copied directly to the device. These files will not be compressed into the application. These resources can be obtained using the Resources.getrawresource () method with the ID parameter, such as R.raw.somefilename |
Sharedpreferences file Storage
Sharedpreferences provides some basic information preservation functions, all of which are saved in the form of "Key=value", but android.content. The information stored by the Sharedpreferences interface can only be a few basic data types-such as: String, Integer, Boolean, and so on.
File operation "Android 8"