projected-hardware
यह क्या करती है
यह स्किल बताती है कि Android ऐप से प्रोजेक्टेड स्मार्ट चश्मों के कैमरा और माइक्रोफ़ोन जैसे हार्डवेयर का उपयोग कैसे करें। इसमें चश्मों की permissions और कनेक्शन का प्रबंधन शामिल है। यह स्मार्ट आईवियर फ़ीचर बनाने वाले Android डेवलपरों के लिए है।
कब इस्तेमाल करें
- ✓जब आपके ऐप को जुड़े स्मार्ट चश्मों के कैमरे से फ़ोटो लेनी हो।
- ✓जब आपके ऐप को प्रोजेक्टेड चश्मों से माइक्रोफ़ोन चाहिए और उसकी permission माँगनी हो।
- ✓जब आपको चश्मों का कनेक्शन संभालना हो और वह टूटने पर संसाधन छोड़ने हों।
Skill का लिंक
https://github.com/android/skills/blob/main/xr/projected-hardware/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे Android ऐप में एक फ़ीचर जोड़िए, जो मेरे जुड़े हुए स्मार्ट चश्मों के कैमरे से फ़ोटो ले।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल प्रोजेक्टेड contexts, permissions और कैमरा कैप्चर के संदर्भ चरणों की ओर इशारा करती है। वह बताती है कि चश्मों का कनेक्शन कैसे जाँचें और उससे जुड़े संसाधन कैसे संभालें।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Prerequisites
- You must use a
compileSdkof 36 or higher.
Connection and lifecycle management
Intelligent eyewear hardware is only accessible while the glasses are connected
to the host phone. Monitor connection state and manage resource lifecycles using
ProjectedContext. You must read
Understand projected activities and projected contexts to understand
how to get a projected context and how to manage its lifecycle.
Request glasses hardware permissions
- Hardware permissions and opt-in : You must read Request hardware permissions to understand how to declare camera and microphone runtime permissions in the Android Manifest file, request runtime permissions in different scenarios, and handle permission results.
Glasses hardware access and capabilities
- Camera capture and CameraX : You must read Capture an image with the glasses' camera to understand the implementation patterns for capturing a photo with the glasses' camera using a
ProjectedContext.
अक्सर पूछे जाने वाले सवाल
कौन सा compile SDK चाहिए?
प्रोजेक्ट को compileSdk 36 या उससे ऊपर इस्तेमाल करना होगा।
क्या चश्मे डिस्कनेक्ट होने पर हार्डवेयर काम करता है?
नहीं। हार्डवेयर सिर्फ़ तभी उपलब्ध है जब चश्मे फ़ोन से जुड़े हों।
permissions कैसे घोषित होती हैं?
कैमरा और माइक्रोफ़ोन की permissions Android manifest में घोषित होती हैं और रनटाइम पर माँगी जाती हैं।
जानकारी
लेखक का मूल विवरण
Provides instructions and workflows for accessing and managing hardware on Android XR projected devices, such as audio glasses and display glasses. Use this skill when building experiences for intelligent eyewear in an Android app and you need to access device hardware like the camera and microphone, handle glasses-specific runtime permissions, or manage connection lifecycles using projected context.
repo: android/skills
लोकप्रियता
- GitHub स्टार
- 10k
- रैंकिंग में स्थान
- #11942
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 29/10/2026
कमेंट
- …
इस repository की और skills
agp-9-upgrade
10kआपके एजेंट को Android ऐप को Android Gradle Plugin 9 पर ले जाने और उसके breaking changes सुधारने में मदद करती है। मल्टीप्लेटफ़ॉर्म प्रोजेक्ट के लिए नहीं।
camerax
10kआपके एजेंट को CameraX से Android कैमरा फ़ीचर बनाने में मदद करती है, जिसमें वीडियो रिकॉर्डिंग, हार्डवेयर कंट्रोल, ML Kit और Media3 इफ़ेक्ट शामिल हैं।
android-for-cars-parked-apps
10kआपके एजेंट को Android वीडियो, गेम या ब्राउज़र ऐप को Android Auto और Android Automotive पर parked ऐप के रूप में चलाने के लिए ढालने में मदद करती है।
appfunctions
10kआपके एजेंट को Android ऐप के मुख्य काम ढूँढकर उन्हें AppFunctions के रूप में देने में मदद करती है, ताकि AI एजेंट और वॉइस कमांड उन्हें चला सकें।
मिलती-जुलती skills
android-clean-architecture
280kयह आपके एजेंट को Android projects को व्यवस्थित तरीके से संभालने देता है। यह code को ऐसा ढांचा देता है कि उसकी देखभाल और नए features जोड़ना आसान हो।
compose-multiplatform-patterns
280kKMP projects में Compose Multiplatform और Jetpack Compose patterns इस्तेमाल करने में आपके एजेंट की मदद करता है। इसमें state, navigation, theming और performance शामिल हैं।
dart-flutter-patterns
280kयह आपके एजेंट को Dart और Flutter apps के लिए code लिखने देता है। यह आधुनिक patterns इस्तेमाल करके मज़बूत और आसानी से संभलने वाले apps बनाता है।