# android/platform-samples

A collection of samples of different Android OS platform APIs.

Repository: https://github.com/android/platform-samples
Canonical: https://ross.abutalabs.com/products/android-platform-samples
Homepage: https://developer.android.com/about
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: android, android-platform, samples, sample
Last push: 2026-08-25T14:45:09+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 89
- inputs: {"age_days": 1247, "days_push": 8, "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 1726, forks 539 (observed 2026-08-28T04:05:28.191474+00:00)

## What it is
Official Google repository of sample code demonstrating Android OS platform APIs, organized by topic such as accessibility, camera, connectivity, graphics, location, privacy, storage, and UI. Samples are simplified demonstrations, not production-ready code.

## Use cases
- learn android platform apis
- see example code for android camera api
- android storage api sample
- how to use android accessibility apis
- android location api example
- android privacy api samples
- kotlin examples for android os apis

## When to choose
- you want official, up-to-date examples of new Android OS platform APIs
- you learn best from small isolated demos per topic
- you want a browsable app that showcases many platform APIs

## When to avoid
- you need production-ready architecture and best practices (use Now In Android instead)
- you need Jetpack library samples rather than OS platform APIs
- you need a reusable library to depend on

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools
- domain: android-tools, mobile-development, tutorials
- platform: jvm
- tags: android-platform-apis, code-samples, google-official, android

## Member repositories
- android/platform-samples (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:28.191474+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-30T03:32:31.513511+00:00, confidence not recorded.
  - readme: https://github.com/android/platform-samples (fetched 2026-08-28T04:05:28.191474+00:00, sha 1b4e164b36b2)
  - homepage: https://developer.android.com/about (fetched 2026-08-29T11:09:12.212477+00:00, sha a619a1a7a950)
  - site_page: https://developer.android.com/google/play/installreferrer (fetched 2026-08-29T11:09:12.219948+00:00, sha 0c36cc3c0414)
  - site_page: https://developer.android.com/blog/categories/documentation (fetched 2026-08-29T11:09:12.225606+00:00, sha ebdb8e262578)
  - site_page: https://developer.android.com/about/versions (fetched 2026-08-29T11:09:12.227268+00:00, sha 2c9e0e051c14)
  - site_page: https://developer.android.com/about/versions/17 (fetched 2026-08-29T11:09:12.228961+00:00, sha f14da0e5f0dc)
  - site_page: https://developer.android.com/training/wearables/versions/latest (fetched 2026-08-29T11:09:12.216302+00:00, sha 8396b9ab4b55)
  - site_page: https://developer.android.com/jetpack/androidx/releases/compose (fetched 2026-08-29T11:09:12.218082+00:00, sha 26b81706cc72)
  - site_page: https://developer.android.com/blog/categories/product-news (fetched 2026-08-29T11:09:12.221745+00:00, sha fdad7419318d)
  - site_page: https://developer.android.com/blog/categories/community (fetched 2026-08-29T11:09:12.223729+00:00, sha 3e0edecad2d7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
