android/ndk-samples

Android NDK samples with Android Studio

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 44 minutes ago
Added to GitGenius on September 5th, 2026
Created on May 16th, 2015
Open Issues & Pull Requests: 25 (+0)
GitHub issues: Enabled
Number of forks: 4,257
Total Stargazers: 10,524 (+0)
Total Subscribers: 616 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 9.8 hours
Mean response time: 5.0 days
90th percentile: 18.4 days
Tracked items: 22

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 6
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 646 days
Stale 30+ days: 6
Stale 90+ days: 6

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Android NDK Samples is a collection of example applications demonstrating how to use the Android NDK with Android Studio.

The repository addresses the need for developers to understand how to integrate native C++ code into Android applications through JNI. It provides working examples that show proper patterns for calling native code from Java and Kotlin, including the use of RegisterNatives() for function matching and version scripts for controlling symbol visibility. Each sample focuses on demonstrating specific NDK APIs in isolation, allowing developers to study individual features without the complexity of a full production application.

Developers should understand that these samples prioritize clarity and brevity over production-readiness. The README explicitly states they are not suitable as starting points for shipping applications, as they make simplifications for educational purposes. For production applications, the recommended approach is to use Android Studio's New Project wizard with either the "Native C++" template for typical applications or the "Game Activity" template for graphics-intensive apps, then reference these samples alongside other resources for NDK-specific guidance. The repository serves best as a reference for understanding best practices rather than as a template to copy.

The project maintains active engagement with its samples, regularly updating them to reflect current NDK capabilities and best practices. Development activity shows consistent attention to keeping examples aligned with Android Studio tooling and CMake requirements, including documentation of manual setup steps when needed. The samples demonstrate evolving production-quality patterns, particularly around JNI registration approaches and binary optimization techniques like version scripts for symbol visibility control.