# android/snippets

Main repository for snippets surfaced on developer.android.com.

Repository: https://github.com/android/snippets
Canonical: https://ross.abutalabs.com/products/snippets
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: snippets
Last push: 2026-09-02T20:09:57+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 35, longevity 100
- inputs: {"age_days": 2996, "days_push": 0, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1109, forks 417 (observed 2026-09-03T02:15:09.059258+00:00)

## What it is
The official repository of Kotlin code snippets embedded in Android documentation on developer.android.com. Each snippet is a small compilable sample project verified by CI to ensure documentation code stays working.

## Use cases
- find working code examples for Android APIs
- learn how to implement a specific Android API
- copy tested snippets from Android docs
- understand Android documentation code in context
- contribute fixes to Android documentation samples

## When to choose
- you want official, CI-verified code examples for Android APIs
- you need minimal context for a snippet you saw in Android docs
- you want to contribute to Android documentation samples

## When to avoid
- you need complete, runnable demo apps rather than small snippets
- you are looking for tutorials for non-Android platforms
- you need a specific snippet still embedded as static HTML in the docs

## Facets
- artifact type: learning-resource
- maturity: active
- function: documentation, developer-tools
- domain: android-tools, documentation, tutorials
- platform: jvm
- tags: code-snippets, android-development, kotlin, official-documentation, android

## Member repositories
- android/snippets (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:09.059258+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:44:21.183870+00:00, confidence not recorded.
  - readme: https://github.com/android/snippets (fetched 2026-09-03T02:15:09.059258+00:00, sha e1e453db8ef6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
