Android 6.0 के सैंपल
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Android 6.0 के एपीआई (एपीआई लेवल 23) का इस्तेमाल शुरू करने के लिए, सैंपल प्रोजेक्ट डाउनलोड करें या ब्राउज़ करें. सैंपल को सीधे Android Studio से डाउनलोड किया जा सकता है. इसके लिए, फ़ाइल > नया > सैंपल इंपोर्ट करें मेन्यू विकल्प चुनें और अपनी पसंद का सैंपल चुनें.
ध्यान दें: डाउनलोड किए जा सकने वाले ये प्रोजेक्ट, Gradle और Android Studio के साथ इस्तेमाल करने के लिए डिज़ाइन किए गए हैं.
-
Camera2Basic:
इस सैंपल में, कैमरे के रॉ बफ़र को कैप्चर करने और उन्हें
DNG
फ़ाइलों के तौर पर सेव करने के लिए, Camera2
एपीआई का इस्तेमाल करने का तरीका बताया गया है.
- DeviceOwner:
इस सैंपल में, किसी डिवाइस को मैनेज और कॉन्फ़िगर करने के लिए, डिवाइस के मालिक की सुविधाओं का इस्तेमाल करने का तरीका बताया गया है.
-
बायोमेट्रिक पुष्टि: इस सैंपल में, आपके ऐप्लिकेशन के उपयोगकर्ता की पुष्टि करने के लिए, रजिस्टर किए गए फ़िंगरप्रिंट की पहचान करने का तरीका बताया गया है.
-
MidiScope:
इस सैंपल में, MIDI API का इस्तेमाल करके, डिवाइस से जुड़े इनपुट डिवाइस से मिलने वाले एमआईडीआई सिग्नल को पाने और प्रोसेस करने का तरीका बताया गया है.
-
MidiSynth:
इस सैंपल में, MIDI API का इस्तेमाल करके, डिवाइस से जुड़े इनपुट डिवाइस से मिलने वाले एमआईडीआई मैसेज को पाने और चलाने का तरीका बताया गया है.
-
एनएफ़सी प्रोविज़निंग:
इस सैंपल में, किसी डिवाइस के मालिक के साथ अन्य डिवाइसों को प्रोविज़न करने के लिए, एनएफ़सी का इस्तेमाल करने का तरीका बताया गया है.
-
RuntimePermissions:
इस सैंपल में, Android 6.0 (एपीआई लेवल 23) और उसके बाद के वर्शन में उपलब्ध रनटाइम की अनुमतियां दिखाई गई हैं. स्क्रीन पर लॉग दिखाएं और देखें कि स्क्रिप्ट कैसे चल रही है. अगर Android 6.0 वाले डिवाइस पर यह कार्रवाई की जाती है, तो ऐप्लिकेशन, संपर्कों को ऐक्सेस करने के लिए एक और विकल्प दिखाता है. यह विकल्प, सिर्फ़ 6.0 के लिए उपलब्ध वैकल्पिक अनुमति का इस्तेमाल करता है.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (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-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# Android 6.0 Samples\n\nDownload or browse sample projects to get started with Android 6.0\nAPIs (API level 23). You can download the samples\ndirectly from Android Studio --- just select the **File \\\u003e New \\\u003e Import\nSample** menu option and pick the sample you want.\n\n\n**Note:** These downloadable projects are designed\nfor use with Gradle and Android Studio.\n\n- [Camera2Basic](https://github.com/android/camera-samples/tree/main/Camera2Basic#readme): This sample demonstrates how to use the `Camera2` API to capture RAW camera buffers and save them as `DNG` files.\n- [DeviceOwner](https://github.com/googlearchive/android-DeviceOwner): This sample demonstrates how to use the device owner features to manage and configure a device.\n- [Biometric\n Authentication](https://github.com/android/security-samples/tree/main/BiometricAuthentication/#readme): This sample demonstrates how to recognize registered fingerprints to authenticate your app's user.\n- [MidiScope](https://github.com/android/media-samples/tree/main/MidiScope): This sample demonstrates how to use the [MIDI API](/reference/android/media/midi/package-summary) to receive and process MIDI signals coming from an attached input device.\n- [MidiSynth](https://github.com/android/media-samples/tree/main/MidiSynth): This sample demonstrates how to use the [MIDI API](/reference/android/media/midi/package-summary) to receive and play MIDI messages coming from an attached input device.\n- [NFC Provisioning](https://github.com/googlearchive/android-NfcProvisioning): This sample demonstrates how to use NFC to provision other devices with a specific device owner.\n- [RuntimePermissions](https://github.com/googlesamples/android-RuntimePermissions): This sample shows runtime permissions available in Android 6.0 (API level 23) and higher. Display the log on screen to follow the execution. If executed on an Android 6.0 device, the app displays an additional option to access contacts using an 6.0-only optional permission."]]