android-media

android-media is a skill for Claude Code, Codex from noloman/Android-AI-skills. It costs 0 tokens per session (344 once invoked), scanned A, original, MIT.

A guide to adding video, audio, camera, image loading, and picture-in-picture features to Android apps.

In plain words
What is it for?
Use it when building video or audio playback, camera features, image loading, background media controls, audio-focus handling, or picture-in-picture video.
Why use it?
It helps avoid outdated Android media APIs, unreleased camera or player resources, unsafe image handling, and playback that ignores other apps or device events.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building video or audio playback, camera features, image loading, background media controls, audio-focus handling, or picture-in-picture video.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/noloman/android-ai-skills/android-media
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add noloman/Android-AI-skills --skill android-media
Clone the repo
git clone --depth 1 https://github.com/noloman/Android-AI-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for android-media

README.md
[![agentmods](https://agentmods.dev/badge/skills/noloman/android-ai-skills/android-media/github.svg)](https://agentmods.dev/skills/noloman/android-ai-skills/android-media)
Your own site
<a href="https://agentmods.dev/skills/noloman/android-ai-skills/android-media"><img src="https://agentmods.dev/badge/skills/noloman/android-ai-skills/android-media/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for android-media

Your own site · 80×15
<a href="https://agentmods.dev/skills/noloman/android-ai-skills/android-media"><img src="https://agentmods.dev/badge/skills/noloman/android-ai-skills/android-media.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 344 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00344
Opus 5 $0.00000 $0.00172
Sonnet 5 $0.00000 $0.00069
Haiku 4.5 $0.00000 $0.00034

Measured 9d ago against content hash e1ce253297ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

android-media scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

android-media/SKILL.md · 39 lines

What it actually says


name: android-media description: Android media — Media3/ExoPlayer, CameraX, image loading, audio focus, PiP. user-invocable: true

Android Media

Cross-cutting skill — always activates alongside the project-type-specific skill.

Hard Rules

  • Use Media3 (androidx.media3) — ExoPlayer is now part of Media3.
  • Use CameraX for camera features — not deprecated Camera or Camera2 directly.
  • Use Coil (Compose-first) or Glide for image loading — not manual bitmap management.
  • Request and manage audio focus before playback — respect other apps.
  • Release media resources (player, camera) when the lifecycle component stops.
  • Handle audio becoming noisy (headphone disconnect) — pause playback.
  • Use MediaSession for background playback — required for media notification controls.
  • Never decode large bitmaps on the main thread — use image loading libraries.
  • Request camera/microphone permissions before accessing hardware.
  • Support Picture-in-Picture only for video playback activities.

Core Patterns

  • Bind Media3 player to lifecycle with LifecycleOwner-aware setup.
  • Use CameraX with lifecycle binding — CameraProvider.bindToLifecycle().
  • Configure Coil with disk cache, memory cache, and crossfade for smooth UX.
  • Implement MediaSessionService for background audio playback.
  • Use ExoPlayer caching (SimpleCache) for streaming content.
  • Handle all player states: idle, buffering, ready, ended, error.

References

  • references/media3_playback.md
  • references/camerax.md
  • references/image_loading.md
  • references/audio_focus.md
  • references/picture_in_picture.md
  • references/camera_extensions.md
Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 39 lines · 0 tokens per session scan A e1ce253297ef

Subscribe to this mod's changes

android-media is a skill published in the GitHub repository noloman/Android-AI-skills (6 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 344 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

axiom-media

Use when working with camera, photos, audio, haptics, ShazamKit, the user's Apple Music library, or Now Playing. Covers AVCaptureSession, PHPicker, PhotosPicker, AVFoundation, Core Haptics, audio recognition, MediaPlayer, CarPlay, MusicKit playback and library enumeration.

CharlesWiltgen/Axiom · 67 tokens

argent-screen-recording

Record a video of an iOS simulator or Android emulator/device screen using argent MCP tools. Use when the user asks to record the screen, capture a video of a flow, interaction, or animation, produce a screen recording, or document app behavior as a video clip.

software-mansion/argent · 59 tokens

app-preview-video

When the user wants to plan, script, produce, or optimize App Store Preview videos or Google Play promo videos — the autoplay videos that show in App Store/Play Store search and product pages. Use when the user mentions "App Preview", "preview video", "app store video", "promo video", "Play Store video", "video poster…

Eronred/aso-skills · 143 tokens

phone-ui-demos

A tool for making cinematic web demonstrations that present information inside a realistic smartphone interface, such as notifications, chats, settings, or an app screen.

Unclecheng-li/AI_Animation · 194 tokens

generate-images-with-firebase-ai

Use when generating or editing images from Flutter/Dart with Firebase AI Logic and a Gemini image model (Nano Banana), making the first call work, choosing Gemini Developer API vs Vertex AI, hitting quota, billing or App Check failures, getting empty or image-only responses, sending a user photo as input, controlling…

evanca/flutter-ai-rules · 84 tokens

ios-marketing-capture

Use when the user wants to automate capture of marketing screenshots for a SwiftUI iOS app across multiple locales, devices, or appearances. Covers full-screen shots, isolated element renders (carousel cards, widgets), and reproducible output naming. Triggers on marketing screenshots, locale screenshots, widget…

ParthJadhav/ios-marketing-capture · 78 tokens