Application Data & Files

Android uses a file system that's similar to disk-based file systems on other platforms. The system provides several options for saving app data:

  • App-specific storage - internal storage to saving sensitive information that other apps should not be able to access.

  • Shared storage - storage for files that the app shares with other apps, including media, documents, and other files.

  • Preferences - storage for private, primitive data in key-value pairs.

  • Databases - storage for structured data in a private database using the Room persistence library.

References

Last updated