Paylaşılan depolama alanına genel bakış
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Kullanıcı uygulamanızı kaldırsa bile, diğer uygulamaların erişebileceği veya erişebileceği ve kaydetmesi gereken kullanıcı verileri için paylaşılan depolama alanını kullanın.
Android, aşağıdaki türde paylaşılabilir verileri depolamak ve bunlara erişmek için API'ler sunar:
- Medya içeriği: Sistem, bu tür dosyalar için standart herkese açık dizinler sağlar. Böylece, kullanıcı tüm fotoğrafları için ortak bir konuma, tüm müzik ve ses dosyaları için başka bir ortak konuma sahip olur. Uygulamanız, platformun
MediaStore
API'sini kullanarak bu içeriğe erişebilir.
- Belgeler ve diğer dosyalar: Sistemin, PDF belgeleri ve EPUB biçimini kullanan kitaplar gibi diğer dosya türlerini içeren özel bir dizini vardır. Uygulamanız, platformun Depolama Erişimi Çerçevesi'ni kullanarak bu dosyalara erişebilir.
- Veri kümeleri: Android 11 (API düzeyi 30) ve sonraki sürümlerde, sistem birden fazla uygulamanın kullanabileceği büyük veri kümelerini önbelleğe alır. Bu veri kümeleri, makine öğrenimi ve medya oynatma gibi kullanım alanlarını destekleyebilir. Uygulamalar, bu paylaşılan veri kümelerine
BlobStoreManager
API'yi kullanarak erişebilir.
Bu API'ler hakkında daha fazla bilgi için aşağıdaki kılavuzlara bakın:
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-02-10 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-02-10 UTC."],[],[],null,["# Overview of shared storage\n\nUse shared storage for user data that can or should be accessible to other apps\nand saved even if the user uninstalls your app.\n\nAndroid provides APIs for storing and accessing the following types of shareable\ndata:\n\n- **Media content:** The system provides standard public directories for these kinds of files, so the user has a common location for all their photos, another common location for all their music and audio files, and so on. Your app can access this content using the platform's [`MediaStore`](/reference/android/provider/MediaStore) API.\n- **Documents and other files:** The system has a special directory for containing other file types, such as PDF documents and books that use the EPUB format. Your app can access these files using the platform's Storage Access Framework.\n- **Datasets:** On Android 11 (API level 30) and higher, the system caches large datasets that multiple apps might use. These datasets can support use cases like machine learning and media playback. Apps can access these shared datasets using the [`BlobStoreManager`](/reference/android/app/blob/BlobStoreManager) API.\n\nFor more information about these APIs, see the following guides:\n\n- [Media content](/training/data-storage/shared/media)\n- [Documents and other files](/training/data-storage/shared/documents-files)\n- [Datasets](/training/data-storage/shared/datasets)"]]