Documente Academic
Documente Profesional
Documente Cultură
D ata S torag e M ed ia
The Android platform, in combination with Java, provides a
robust set of tools that you can use to store data.
Regardless of the situation, Android provides various options
when it comes to storing data.
Android provides various locations to save data. These are
as follows:
Shared preferences These are private data stored in key value pairs.
Internal storage This is a location where all files can be saved on the
devices internal storage. By default, files stored in internal storage are
private to your application, and other applications cannot access them
(neither can the user of the device). When the user uninstalls the
application, the private files are removed.
D ata S torag e M ed ia
- Local cache This can be used if you dont want to store data
persistently. The internal data directory is where you should create the
cache. If you store data here and the system gets low on internal storage
space, Android may delete these files to reclaim space. The limit of
consumable space is around 1MB.
- External storage This can either be the removable storage such as
a Secure Digital Card (SD Card) or nonremovableinternal storage.
- SQLite database This database is a lightweight SQL (Structured
Query Language) database implementation that is used by Android. It is
available across various platforms.
- Network connection This is also known as remote storage. It can be
any remote data source that user have access to.