Buradasın
Android Media Storage Guide
developer.android.com/training/data-storage/shared/mediaYapay zekadan makale özeti
- Core Features
- Media store provides optimized index for accessing external storage media files
- Photo picker offers alternative to media store for user-friendly media selection
- Files remain accessible even after app uninstallation
- Supported Collections
- System automatically adds images, videos, audio, and downloaded files
- MediaStore.Files shows only app-created media files on Android 10+
- Storage Access Framework required for accessing downloads on Android 9
- Permissions and Access
- Apps need READ_EXTERNAL_STORAGE for accessing other apps' files
- Storage permissions needed for modifying files on Android 9 and lower
- Media location permission required for retrieving EXIF metadata on Android 10+
- Advanced Features
- Android 11+ allows batch management of media files
- Apps can request media management permission for enhanced functionality
- Storage volumes provide unique names for organizing content
- Files can be added, updated, and removed using specific APIs
- Performance Considerations
- Direct file paths perform similarly to MediaStore API
- Random reads and writes can be up to twice as slow
- Performance depends on file type and storage volume
- Cached data should be periodically checked for updates