GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - android/snippets: Main repository for snippets surfaced on developer.android.com.

BranchesTags
Open more actions menu

Latest commit

 

History

879 Commits
879 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
ai
ai
 
 
backgroundwork
backgroundwork
 
 
bluetoothle
bluetoothle
 
 
buildSrc
buildSrc
 
 
buildscripts
buildscripts
 
 
camera
camera
 
 
cars
cars
 
 
compose
compose
 
 
connectivity
connectivity
 
 
contacts
contacts
 
 
datastore
datastore
 
 
gradle
gradle
 
 
healthconnect
healthconnect
 
 
identity/credentialmanager
identity/credentialmanager
 
 
ink
ink
 
 
installprompt
installprompt
 
 
kmp
kmp
 
 
kotlin
kotlin
 
 
location
location
 
 
media
media
 
 
misc
misc
 
 
performance
performance
 
 
playbilling
playbilling
 
 
preview
preview
 
 
room
room
 
 
security
security
 
 
spotless
spotless
 
 
telecom
telecom
 
 
tv
tv
 
 
views
views
 
 
watchface
watchface
 
 
watchfacepush/validator
watchfacepush/validator
 
 
wear
wear
 
 
wearcompanion
wearcompanion
 
 
xr
xr
 
 
.gitignore
.gitignore
 
 
ASSETS_LICENSE
ASSETS_LICENSE
 
 
CODEOWNERS
CODEOWNERS
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
renovate.json
renovate.json
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

Android Snippets

This repository holds code snippets used in Android documentation on developer.android.com.

The idea is that by having a small sample project that contains the code snippets from documentation, developers will gain more context on how to implement a specific API.

In addition, by having CI running on this repo, we can ensure that the code snippets on developer.android.com is in a working condition.

It is a work in progress, as many snippets are still embedded as static HTML.

Contributing

We love contributions! See CONTRIBUTING.md for guidelines.

Interactive Compose Previews (preview/)

The preview/ directory provides the interactive WebAssembly (Compose Multiplatform for Web) preview runner and Roborazzi screenshot generator used by developer.android.com:

  • preview/wasm: Compiles registered Material 3 Compose snippets from compose/snippets into an embeddable WebAssembly application (wasm.html + snippets-preview-wasm.mjs) with URL-driven theme, color preset, and density controls.
  • preview/generator: Generates 16:9 (768x432) monochrome static preview screenshots for every snippet in SnippetRegistry.kt using Robolectric Native Graphics and Roborazzi.

See preview/README.md for local build, screenshot generation, and development server instructions.

About

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

Topics

snippets

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

1.1k stars

Watchers

84 watching

Forks

442 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.