शेयर किए गए स्टोरेज की खास जानकारी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
शेयर किए गए स्टोरेज का इस्तेमाल, उपयोगकर्ता के उस डेटा के लिए करें जिसे दूसरे ऐप्लिकेशन ऐक्सेस कर सकते हैं या जिसे ऐक्सेस करना चाहिए. साथ ही, यह भी ध्यान रखें कि उपयोगकर्ता आपका ऐप्लिकेशन अनइंस्टॉल कर दे, तब भी वह डेटा सेव रहे.
Android, शेयर किए जा सकने वाले इस तरह के डेटा को सेव और ऐक्सेस करने के लिए एपीआई उपलब्ध कराता है:
- मीडिया कॉन्टेंट: सिस्टम, इस तरह की फ़ाइलों के लिए स्टैंडर्ड सार्वजनिक डायरेक्ट्री उपलब्ध कराता है. इससे उपयोगकर्ता के पास अपनी सभी फ़ोटो के लिए एक ही जगह, अपने सभी संगीत और ऑडियो फ़ाइलों के लिए एक ही जगह वगैरह होती है. आपका ऐप्लिकेशन, प्लैटफ़ॉर्म के
MediaStore
एपीआई का इस्तेमाल करके, इस कॉन्टेंट को ऐक्सेस कर सकता है.
- दस्तावेज़ और अन्य फ़ाइलें: सिस्टम में एक खास डायरेक्ट्री होती है, जिसमें अन्य फ़ाइल टाइप सेव किए जाते हैं. जैसे, PDF दस्तावेज़ और EPUB फ़ॉर्मैट का इस्तेमाल करने वाली किताबें. आपका ऐप्लिकेशन, प्लैटफ़ॉर्म के स्टोरेज ऐक्सेस फ़्रेमवर्क का इस्तेमाल करके, इन फ़ाइलों को ऐक्सेस कर सकता है.
- डेटासेट: Android 11 (एपीआई लेवल 30) और उसके बाद के वर्शन पर, सिस्टम बड़े डेटासेट को कैश मेमोरी में सेव करता है. इन डेटासेट का इस्तेमाल कई ऐप्लिकेशन कर सकते हैं. इन डेटासेट का इस्तेमाल, मशीन लर्निंग और मीडिया चलाने जैसे कामों के लिए किया जा सकता है. ऐप्लिकेशन,
BlobStoreManager
एपीआई का इस्तेमाल करके, शेयर किए गए इन डेटासेट को ऐक्सेस कर सकते हैं.
इन एपीआई के बारे में ज़्यादा जानकारी के लिए, ये गाइड देखें:
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-02-10 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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)"]]