공유 저장소 개요
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
다른 앱에서 액세스할 수 있거나 액세스할 수 있어야 하고 사용자가 앱을 제거하더라도 보존되어야 하는 사용자 데이터는 공유 저장소에 저장하세요.
Android는 공유 가능한 다음 데이터 유형을 저장하고 이 데이터에 액세스하는 API를 제공합니다.
- 미디어 콘텐츠: 시스템은 이러한 종류의 파일에 표준 공개 디렉터리를 제공하므로 사용자는 모든 사진을 저장하는 공통 위치, 모든 음악 및 오디오 파일을 저장하는 또 다른 공통 위치 등을 가지게 됩니다. 앱은 플랫폼의
MediaStore
API를 사용하여 이 콘텐츠에 액세스할 수 있습니다.
- 문서 및 기타 파일: 시스템에는 PDF 문서와 EPUB 형식의 도서 등 기타 파일 형식을 두기 위한 특수 디렉터리가 있습니다. 앱은 플랫폼의 저장소 액세스 프레임워크를 사용하여 이러한 파일에 액세스할 수 있습니다.
- 데이터 세트: Android 11(API 수준 30) 이상에서 시스템은 여러 앱에서 사용할 수 있는 큰 데이터 세트를 캐시합니다. 이러한 데이터 세트는 머신러닝, 미디어 재생과 같은 사용 사례를 지원할 수 있습니다. 앱은
BlobStoreManager
API를 사용하여 이러한 공유 데이터 세트에 액세스할 수 있습니다.
이러한 API에 관한 자세한 내용은 다음 가이드를 참고하세요.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-02-10(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 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)"]]