The various storage provided by android are:
- Shared Preferences
- Internal Storage
- External Storage
- SQLite Databases
- Network Connection
Android provides several types of storage options for applications. Here are some of the main storage options in Android:
- Internal Storage:
- Path:
/data/data/<package_name>/
- This is the private storage space for each application. Data stored here is only accessible by the specific app.
- Path:
- External Storage:
- Path:
/storage/emulated/0/
(or similar paths) - This is the shared storage space that is accessible by all applications. It includes the device’s external storage (like an SD card) and is considered public storage. Starting with Android 10, access to external storage is more restricted to enhance user privacy.
- Path:
- Cache Storage:
- Path:
/data/data/<package_name>/cache/
- This is used for storing temporary files, which can be deleted by the system when the device is running low on storage.
- Path:
- Shared Preferences:
- Storage for small amounts of key-value pairs. Data is stored as XML files in the app’s internal storage.
- Databases:
- Android provides support for SQLite databases that can be used to store structured data.
- Network Storage:
- Applications can also store data on remote servers through network protocols like HTTP or FTP.
It’s important to note that the access and usage policies for these storage options may vary, and developers need to consider security and privacy implications when handling user data. Additionally, the storage landscape on Android may evolve with new releases, so it’s a good idea to refer to the official Android documentation for the most up-to-date information.