Академический Документы
Профессиональный Документы
Культура Документы
Android allows to persists application data via the file system. For each
application the Android system creates adata/data/[application
package]directory.
Android supports the following ways of storing data in the local file system:
Files - You can create and update files
Preferences - Android allows you to save and retrieve persistent key-value
pairs of primitive data type.
SQLite database - instances of SQLite databases are also stored on the
local file system.
Files are saved in thefilesfolder and application settings are saved as XML
files in theshared_prefsfolder.
If your application creates an SQLite database this database is saved in the
main application directory under thedatabasesfolder.
Only the application can write into its application directory. It can create
additional sub-directories in this application directory. For these sub-
directories, the application can grant read or write permissions for other
applications.
Internal vs. external storage
Android has internal storage and external storage. External storage is not
private and may not always be available. If, for example, the Android
device is connected with a computer, the computer may mount the
external system via USB and that makes this external storage not available
for Android applications.
Application on external storage