示例:概览
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
欢迎访问 NDK 示例版块。您可以在这里下载各种示例应用,以便加深对 NDK 的理解。
NDK 示例
您可以利用通过此页面下载的示例,了解 NDK 的实际运行情况。这些示例涵盖的主题包括:
- 管理原生应用的 Activity 生命周期。
- 在 Android 设备上使用原生 OpenGL。
- 实现原生音频。
- 导出模块。
Vulkan 示例
Vulkan 示例存放在与其余 NDK 示例不同的位置。要浏览这些示例,请点击下方的链接。
Google Play 游戏示例
Google Play 游戏服务 C++ SDK 示例阐述了在构建 Android 应用时如何使用这类服务。要浏览这些示例,请点击下方的链接。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-26。"],[],[],null,["# Samples: Overview\n\nWelcome to the NDK samples area. Here, you can download a variety of sample\napps to help deepen your understanding the NDK.\n\nNDK Samples\n-----------\n\nFrom this page, you can download samples that provide a look at the NDK in action. A few of the\ntopics covered are:\n\n- Managing your native app's activity lifecycle.\n- Using native OpenGL on an Android device.\n- Implementing native audio.\n- Exporting modules.\n\n[Browse NDK samples on GitHub](https://github.com/android/ndk-samples/tree/main)\n\nVulkan Samples\n--------------\n\nVulkan samples are located separately from those for the rest of the NDK. To explore these\nsamples, click on the link below. \n[Browse Vulkan samples on GitHub](https://github.com/LunarG/VulkanSamples)\n\nGoogle Play Games Samples\n-------------------------\n\nThe Google Play games services C++ SDK samples illustrate how to use these services when building\nyour Android apps. To explore these samples, click on the link below. \n[Browse Google Play Games C++ SDK samples on GitHub](https://github.com/playgameservices/cpp-android-basic-samples)"]]