Skip to content

Android XR Projected Hardware

Guides building Android apps that use glasses camera, microphone, and permissions via ProjectedContext

Repository
android/skills
Stars
10,278
Licence
Apache-2.0
Files
5 files

What it does

This skill gives an AI coding agent reference guidance for building Android apps that run on Android XR intelligent eyewear, such as audio glasses and display glasses. Once installed, the agent can point you to and apply the documented patterns for connecting to glasses through ProjectedContext, managing connection lifecycles, declaring and requesting camera and microphone permissions, and capturing a photo with the glasses camera. It works by loading the bundled reference markdown files into the agent's context; it does not itself access any device.

Great for

  • Android developers building apps for Android XR glasses who want the agent to follow the official hardware access patterns
  • Teams adding camera or microphone features to a glasses companion app and needing permission handling done correctly
  • Developers new to ProjectedContext who want a guided path through the related docs

Skip it if

  • Non-developers or people without an Android project; the output is code-level guidance that requires an Android toolchain to use
  • Projects targeting compileSdk below 36, since the skill's stated prerequisite is not met and the guidance will not apply
  • Hardware other than Android XR projected devices, where these APIs and patterns are not relevant

Try asking

  • “Show me how to get a ProjectedContext in my Android XR app and handle connection lifecycle”
  • “Add camera permission requests and manifest declarations for my audio glasses app”
  • “Capture a photo from the display glasses camera using CameraX with ProjectedContext”
  • “Record audio from the glasses microphone and handle runtime permission results”
Step-by-step guide: how to use Android XR Projected HardwareInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 5 original files, the Apache-2.0 licence and an attribution note.

    projected-hardware.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip projected-hardware.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip projected-hardware.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Ask the agent to read the linked reference files for the specific feature you need, such as permissions or camera capture, rather than the whole topic at once.
  • Confirm your project's compileSdk is 36 or higher before applying the patterns.
  • Test permission flows and connection drops on real glasses or the emulator, since the skill only supplies documentation and the code still needs verification.

What's inside

  • references/android/develop/xr/jetpack-xr-sdk/access-hardware-projected-context.md
  • references/android/develop/xr/jetpack-xr-sdk/glasses/check-availability.md
  • references/android/develop/xr/jetpack-xr-sdk/glasses/support-different-types.md
  • references/android/develop/xr/jetpack-xr-sdk/request-hardware-permissions.md
  • SKILL.md

Redistributed unmodified from android/skills under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.