示例:概览
欢迎访问 NDK 示例版块。您可以在这里下载各种示例应用,以便加深对 NDK 的理解。
NDK 示例
您可以利用通过此页面下载的示例,了解 NDK 的实际运行情况。这些示例涵盖的主题包括:
- 管理原生应用的 Activity 生命周期。
- 在 Android 设备上使用原生 OpenGL。
- 实现原生音频。
- 导出模块。
Vulkan 示例
Vulkan 示例存放在与其余 NDK 示例不同的位置。要浏览这些示例,请点击下方的链接。
Google Play 游戏示例
Google Play 游戏服务 C++ SDK 示例阐述了在构建 Android 应用时如何使用这类服务。要浏览这些示例,请点击下方的链接。
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-01-05 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]