
Internal storage has theĪdded benefit of the data being hidden from users. Should the data be private to your app? When storing sensitive data-data that shouldn't be accessible from any otherĪpp-use internal storage, preferences, or a database. For structured data, use either preferences (for key-valueĭata) or a database (for data that contains more than 2 columns). For shareable media content, use shared storage so that other apps canĪccess the content. What kind of data do you need to store? If you have data that's only meaningful for your app, use app-specific Is starting up, place the data within internal storage directory or a database.Īpp-specific files that are stored in external storage aren't always accessibleīecause some devices allow users to remove a physical device that corresponds toĮxternal storage. How reliable does data access need to be? If your app's basic functionality requires certain data, such as when your app Storage if you need to save a substantial amount of data. The solution you choose depends on your specific needs: How much space does your data require? Internal storage has limited space for app-specific data. Other types of shareable content, including downloaded files Yes, though the other app needs the READ_EXTERNAL_STORAGE
#Calibre android storage android
Permissions are required for all files on Android 9 (API level 28) or

When accessing other apps' files on Android 10 (API level 29) READ_EXTERNAL_STORAGE or WRITE_EXTERNAL_STORAGE READ_EXTERNAL_STORAGE when accessing other apps' files on Shareable media files (images, audio files, videos)

Storage when your app is used on devices that run Android 4.4 (API level 19) The characteristics of these options are summarized in the following table:

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