# android/ndk-samples

Android NDK samples with Android Studio

Repository: https://github.com/android/ndk-samples
Canonical: https://ross.abutalabs.com/products/ndk-samples
Homepage: http://developer.android.com/ndk
Language: C++
License: Apache-2.0
License Family: permissive
Last push: 2026-02-20T03:19:39+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 68, release rhythm 35, longevity 100
- inputs: {"age_days": 4127, "days_push": 194, "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 10525, forks 4256 (observed 2026-08-28T04:10:42.233134+00:00)

## What it is
A collection of official sample apps demonstrating the Android NDK (native C/C++ development on Android), built with Android Studio and Gradle. Samples showcase individual NDK APIs such as JNI usage, camera, graphics, and best practices like RegisterNatives and version scripts.

## Use cases
- learn how to use the Android NDK with C++
- see examples of JNI native code in Android apps
- find a starting point for Vulkan or OpenGL native Android apps
- understand NDK best practices like RegisterNatives
- build native Android samples from the command line with Gradle

## When to choose
- you want official, maintained examples of Android NDK APIs
- you are learning native Android development with C/C++
- you need reference code for JNI, camera, or graphics APIs on Android

## When to avoid
- you need a production-quality app template (samples intentionally sacrifice robustness)
- you are building a pure Java/Kotlin app with no native code
- you want a general Android app architecture reference (use Now in Android instead)

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools, graphics, game-engine
- domain: mobile-development, developer-tools, tutorials
- platform: cpp, cross-platform
- tags: android-ndk, jni, sample-apps, cmake, vulkan, opengl, android-studio, game-development, android

## Member repositories
- android/ndk-samples (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:42.233134+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-29T17:18:34.536885+00:00, confidence not recorded.
  - readme: https://github.com/android/ndk-samples (fetched 2026-08-28T04:10:42.233134+00:00, sha fb1bd1b9ffda)
  - homepage: http://developer.android.com/ndk (fetched 2026-08-29T08:18:00.485651+00:00, sha f71e3966da1e)
  - site_page: https://developer.android.com/google/play/installreferrer (fetched 2026-08-29T08:18:00.498574+00:00, sha 0c36cc3c0414)
  - site_page: https://developer.android.com/blog/categories/documentation (fetched 2026-08-29T08:18:00.504314+00:00, sha ebdb8e262578)
  - site_page: https://developer.android.com/about/versions/17 (fetched 2026-08-29T08:18:00.506013+00:00, sha f14da0e5f0dc)
  - site_page: https://developer.android.com/about/versions/16 (fetched 2026-08-29T08:18:00.507815+00:00, sha e0d8884a0810)
  - site_page: https://developer.android.com/training/wearables/versions/latest (fetched 2026-08-29T08:18:00.494749+00:00, sha 8396b9ab4b55)
  - site_page: https://developer.android.com/jetpack/androidx/releases/compose (fetched 2026-08-29T08:18:00.496637+00:00, sha 26b81706cc72)
  - site_page: https://developer.android.com/blog/categories/product-news (fetched 2026-08-29T08:18:00.500596+00:00, sha fdad7419318d)
  - site_page: https://developer.android.com/blog/categories/community (fetched 2026-08-29T08:18:00.502191+00:00, sha 3e0edecad2d7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
